12 lines
585 B
Docker
12 lines
585 B
Docker
|
FROM debian:latest
|
||
|
ENV container docker
|
||
|
RUN apt update; apt install curl -y
|
||
|
RUN mkdir -p --mode=0755 /usr/share/keyrings
|
||
|
RUN curl -fsSL https://pkg.cloudflare.com/cloudflare-main.gpg | tee /usr/share/keyrings/cloudflare-main.gpg >/dev/null
|
||
|
RUN echo 'deb [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/cloudflared bookworm main' | tee /etc/apt/sources.list.d/cloudflared.list
|
||
|
RUN apt update; apt install nginx cloudflared -y
|
||
|
#RUN mkdir -p /run/nginx
|
||
|
#COPY index.html /var/www/index.html
|
||
|
EXPOSE 80
|
||
|
CMD [ "/usr/sbin/nginx", "-c", "/etc/nginx/nginx.conf" ]
|