Skip to content

Commit

Permalink
Update Dockerfile.custom
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Sep 2, 2024
1 parent df94b36 commit 5199fdf
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Dockerfile.custom
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
FROM --platform=$BUILDPLATFORM node:current AS build
FROM --platform=$BUILDPLATFORM node:21 AS build

WORKDIR /src
COPY . .
WORKDIR /app

RUN yarn --network-timeout 1000000
RUN yarn build
COPY package.json yarn.lock .yarnrc.yml .
COPY .yarn .yarn
COPY packages packages
COPY .git .git

RUN yarn --network-timeout 1000000 && yarn build

FROM nginxinc/nginx-unprivileged:mainline-alpine

COPY docker/nginx.conf.custom /etc/nginx/conf.d/default.conf
COPY --from=build /src/packages/app/build /usr/share/nginx/html
COPY --from=build /app/packages/app/build /usr/share/nginx/html

EXPOSE 8080

0 comments on commit 5199fdf

Please sign in to comment.