Skip to content

Commit

Permalink
fix - correct dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
EricThuaud authored May 17, 2024
1 parent bb30e05 commit 663867e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ ADD build /usr/share/nginx/html
RUN rm etc/nginx/conf.d/default.conf
COPY nginx.conf etc/nginx/conf.d/


COPY entrypoint.sh /entrypoint.sh

# add non-root user
RUN touch /var/run/nginx.pid
RUN chown -R nginx:nginx /var/run/nginx.pid /usr/share/nginx/html /var/cache/nginx /var/log/nginx /etc/nginx/conf.d
Expand All @@ -16,9 +19,6 @@ EXPOSE 8080

USER nginx


COPY entrypoint.sh /entrypoint.sh

# Start Nginx server
ENTRYPOINT sh -c "./entrypoint.sh && nginx -g 'daemon off;'"
RUN chmod +x entrypoint.sh
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "platine-my-surveys",
"version": "0.2.20",
"version": "0.2.21",
"private": true,
"dependencies": {
"@emotion/react": "^11.9.0",
Expand Down

0 comments on commit 663867e

Please sign in to comment.