Skip to content

Commit

Permalink
dockerfile update
Browse files Browse the repository at this point in the history
  • Loading branch information
ddecrulle committed Mar 13, 2024
1 parent 0a9c9c3 commit e2528ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ FROM nginx:stable-alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
WORKDIR /usr/share/nginx/html

# Add bash
RUN apk add --no-cache bash

## Copy .env file and shell script to container
## Copy dist to container
ADD dist /usr/share/nginx/html

# add non-root user
Expand All @@ -15,7 +12,6 @@ RUN chown -R nginx:nginx /var/run/nginx.pid /usr/share/nginx/html /var/cache/ngi

# non root users cannot listen on 80
EXPOSE 8080

USER nginx

ENTRYPOINT sh -c "/usr/share/nginx/html/vite-envs.sh && nginx -g 'daemon off;'"
ENTRYPOINT sh -c "sh /usr/share/nginx/html/vite-envs.sh && nginx -g 'daemon off;'"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "stromae-dsfr",
"private": true,
"version": "0.0.6",
"version": "0.0.7",
"type": "module",
"scripts": {
"prepare": "vite-envs update-types",
Expand Down

0 comments on commit e2528ba

Please sign in to comment.