Skip to content

Commit

Permalink
modif dockerfile front pour conf nginx pour ssl
Browse files Browse the repository at this point in the history
  • Loading branch information
Khagou committed Apr 13, 2024
1 parent ccfc612 commit 1ac6d37
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions client/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
FROM nginx:latest

RUN apt-get update \
&& apt-get install -y certbot python3-certbot-nginx \
&& echo 'location ~ /.well-known/acme-challenge/ { allow all; root /var/www/html; }' > /etc/nginx/conf.d/default.conf
&& apt-get install -y certbot python3-certbot-nginx

RUN echo "server {" > /etc/nginx/conf.d/default.conf \
&& echo " listen 80;" >> /etc/nginx/conf.d/default.conf \
&& echo " location ~ /.well-known/acme-challenge/ { allow all; root /var/www/html; }" >> /etc/nginx/conf.d/default.conf \
&& echo "}" >> /etc/nginx/conf.d/default.conf

COPY ./build/ /usr/share/nginx/html

Expand Down

0 comments on commit 1ac6d37

Please sign in to comment.