mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
598 B
22 lines
598 B
FROM debian:10.5-slim |
|
|
|
RUN apt-get update |
|
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 |
|
ENTRYPOINT ["/app/entrypoint.sh"]
|
|
|