change debiam to ubuntu

master
yurymuski 2 years ago
parent 3cde573afd
commit 2655f98dee
  1. 4
      Dockerfile
  2. 1
      README.md
  3. 2
      example.nginx.conf

@ -1,4 +1,4 @@
FROM debian:12 AS builder FROM ubuntu:20.04 AS builder
LABEL maintainer="Yury Muski <muski.yury@gmail.com>" LABEL maintainer="Yury Muski <muski.yury@gmail.com>"
@ -69,7 +69,7 @@ RUN curl -O https://nginx.org/download/nginx-$NGINX_VERSION.tar.gz && \
make && \ make && \
make install; make install;
FROM debian:12-slim FROM ubuntu:20.04
RUN apt-get update && \ RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y libpcre3 libbrotli1 DEBIAN_FRONTEND=noninteractive apt-get install -y libpcre3 libbrotli1

@ -25,7 +25,6 @@ docker run -it --rm --name certbot \
`docker run --name nginx -d -p 80:80 -p 443:443/tcp -p 443:443/udp -v ${PWD}/temp/letsencrypt/:/opt/nginx/certs/ -v ${PWD}/nginx.conf:/etc/nginx/nginx.conf ymuski/nginx-http3` `docker run --name nginx -d -p 80:80 -p 443:443/tcp -p 443:443/udp -v ${PWD}/temp/letsencrypt/:/opt/nginx/certs/ -v ${PWD}/nginx.conf:/etc/nginx/nginx.conf ymuski/nginx-http3`
`docker run --name nginx -d -p 80:80 -p 443:443/tcp -p 443:443/udp -v /etc/letsencrypt/:/opt/nginx/certs/ -v /opt/nginx/conf/example.nginx.conf:/etc/nginx/nginx.conf ymuski/nginx-http3`
### Checking ### Checking

@ -51,7 +51,7 @@ http {
} }
# Add Alt-Svc header to negotiate HTTP/3. # Add Alt-Svc header to negotiate HTTP/3.
add_header alt-svc 'h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400, h3=":443"; ma=86400'; add_header alt-svc 'h3=":443"; ma=86400';
location / { location / {
root html; root html;

Loading…
Cancel
Save