Skip to content

Commit

Permalink
Deploy in docker container (6)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx committed May 18, 2024
1 parent c984bab commit 7db548b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ FROM nginx as production-stage
COPY --from=build-stage /app/dist /var/www/dkg

# Copy the Nginx configuration file
COPY config/nginx.docker.conf /etc/nginx/conf.d/default.conf.template
COPY config/nginx.docker.conf /etc/nginx/conf.d/default.conf
COPY config/.htaccess /var/www/dkg

EXPOSE 80
EXPOSE 443

CMD envsubst < /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'
CMD ["nginx", "-g", "daemon off;"]
4 changes: 2 additions & 2 deletions config/nginx.docker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ server {
listen [::]:80 ;
listen 443 ssl ;
listen [::]:443 ssl ;
ssl_certificate ${NGINX_SSL_CERTIFICATE_PATH};
ssl_certificate_key ${NGINX_SSL_CERTIFICATE_KEY_PATH};
ssl_certificate /etc/nginx/certificate/s.crt;
ssl_certificate_key /etc/nginx/certificate/s.key;
root /var/www/dkg;
index index.html;

Expand Down

0 comments on commit 7db548b

Please sign in to comment.