Skip to content

Commit

Permalink
chore: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo committed Jan 16, 2024
1 parent 8e5dcd2 commit 7ae6e4d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
FROM node:14-alpine as builder

WORKDIR /app
# needed for node alpine
RUN chown -R 1000:1000 /app && \
chmod -R 755 /app && \
chown 1000:1000 /tmp && \
chmod 1777 /tmp

COPY yarn.lock .yarnrc.yml ./
COPY .yarn .yarn
COPY --chown=1000:1000 .yarn .yarn
RUN yarn workspaces focus --production && yarn cache clean

COPY . .
COPY --chown=1000:1000 . .
RUN yarn build
RUN yarn export

FROM ghcr.io/socialgouv/docker/nginx4spa:7.0.1

COPY --from=builder /out /usr/share/nginx/html
COPY --from=builder /app/out /usr/share/nginx/html

0 comments on commit 7ae6e4d

Please sign in to comment.