mirror of https://github.com/01-edu/public.git
xpetit
4 years ago
4 changed files with 31 additions and 1 deletions
@ -0,0 +1,4 @@ |
|||||||
|
{$DOMAIN} |
||||||
|
tls internal |
||||||
|
encode zstd gzip |
||||||
|
file_server |
@ -1,6 +1,22 @@ |
|||||||
FROM debian:10.5-slim |
FROM debian:10.5-slim |
||||||
|
|
||||||
RUN apt-get update |
RUN apt-get update |
||||||
RUN apt-get -y install jq curl git |
RUN apt-get -y install jq curl |
||||||
|
|
||||||
|
WORKDIR /app/assets/superhero |
||||||
|
RUN curl --remote-name --location https://demo.01-edu.org/assets/superhero/all.json |
||||||
|
|
||||||
|
WORKDIR /tmp/installation |
||||||
|
|
||||||
|
RUN curl --remote-name --location https://github.com/caddyserver/caddy/releases/download/v2.2.1/caddy_2.2.1_linux_amd64.tar.gz |
||||||
|
RUN tar xf caddy_2.2.1_linux_amd64.tar.gz |
||||||
|
RUN mv caddy /usr/local/bin |
||||||
|
RUN apt-get -y install libcap2-bin |
||||||
|
RUN setcap 'cap_net_bind_service=+ep' /usr/local/bin/caddy |
||||||
|
|
||||||
|
WORKDIR /app |
||||||
|
|
||||||
|
RUN rm -rf /tmp/installation |
||||||
|
|
||||||
COPY . /app |
COPY . /app |
||||||
ENTRYPOINT ["/app/entrypoint.sh"] |
ENTRYPOINT ["/app/entrypoint.sh"] |
||||||
|
Loading…
Reference in new issue