Skip to content

Commit

Permalink
fix: docker perms
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo committed Oct 23, 2023
1 parent f66bfd7 commit 4c6cc22
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
FROM node:16-alpine

RUN chown -R 1000:1000 /home/node && \
chmod -R 755 /home/node && \
chown 1000:1000 /tmp && \
chmod 1777 /tmp

WORKDIR /app
COPY . .
USER 1000
COPY --chown=1000:1000 . .

ARG NEXT_PUBLIC_API_URL
ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL
Expand Down Expand Up @@ -30,7 +36,6 @@ ENV NEXT_PUBLIC_CALENDLY_LINK=$NEXT_PUBLIC_CALENDLY_LINK
RUN yarn --production --frozen-lockfile --prefer-offline && yarn cache clean
RUN yarn build

USER 1000

ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1
Expand Down

0 comments on commit 4c6cc22

Please sign in to comment.