Skip to content

Commit

Permalink
Fix docker build (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
ioppermann committed Sep 13, 2024
1 parent 3f44579 commit 4a88f47
Show file tree
Hide file tree
Showing 2 changed files with 916 additions and 482 deletions.
17 changes: 6 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
ARG NODE_IMAGE=node:21-alpine3.17
ARG CADDY_IMAGE=caddy:2.7.5-alpine
ARG NODE_IMAGE=node:21-alpine3.20
ARG CADDY_IMAGE=caddy:2.8.4-alpine

FROM $NODE_IMAGE as builder
FROM $NODE_IMAGE AS builder

ARG NODE_SPACE_SIZE=10240
ENV NODE_OPTIONS="--openssl-legacy-provider --max-old-space-size=$NODE_SPACE_SIZE"

ENV PUBLIC_URL "./"
ENV PUBLIC_URL="./"

COPY . /ui

WORKDIR /ui

RUN cd /ui && \
yarn set version berry && \
yarn config set httpTimeout 600000 && \
yarn install && \
yarn run build
yarn install && \
yarn build

FROM $CADDY_IMAGE

Expand Down
Loading

0 comments on commit 4a88f47

Please sign in to comment.