Skip to content

Commit

Permalink
Correct perms for dist folder, explicit copy & remove old .dockerignore
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Madigan <[email protected]>
  • Loading branch information
jasonmadigan committed Dec 18, 2024
1 parent b9812f4 commit aa300ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .dockerignore

This file was deleted.

5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN yarn config set network-concurrency 1 && \
yarn config set network-timeout 100000

RUN mkdir -p /var/cache/nginx /var/log/nginx /run && \
chmod -R 777 /var/cache/nginx /var/log/nginx /run
chmod -R 777 /var/cache/nginx /var/log/nginx /run /usr/share/nginx/html/

WORKDIR /usr/src/app

Expand All @@ -23,7 +23,8 @@ COPY . .

RUN yarn build

RUN cp -r dist /usr/share/nginx/html
COPY dist /usr/share/nginx/html

COPY entrypoint.sh /usr/share/nginx/html/entrypoint.sh

USER 1001
Expand Down

0 comments on commit aa300ee

Please sign in to comment.