feat(nginx/dockerfile): now dockerfile is finished
This commit is contained in:
parent
7a00c7fc45
commit
971f30f8f1
1 changed files with 19 additions and 0 deletions
|
|
@ -0,0 +1,19 @@
|
||||||
|
FROM alpine:3.21
|
||||||
|
|
||||||
|
RUN apk update
|
||||||
|
RUN apk add nginx openssl bash
|
||||||
|
|
||||||
|
RUN mkdir -p /run/nginx /etc/nginx/ssl
|
||||||
|
|
||||||
|
COPY conf/nginx.conf /etc/nginx/nginx.conf
|
||||||
|
COPY tools/generate_ssl_certificate.sh /usr/bin/generate_ssl_certificate
|
||||||
|
|
||||||
|
RUN chmod +x /usr/bin/generate_ssl_certificate
|
||||||
|
|
||||||
|
RUN /usr/bin/generate_ssl_certificate
|
||||||
|
|
||||||
|
USER nginx
|
||||||
|
|
||||||
|
EXPOSE 443
|
||||||
|
|
||||||
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue