Swap busybox webserver to caddy #11
|
|
@ -1,4 +1,4 @@
|
||||||
FROM git.hswro.org/fleg/serve_base:latest
|
FROM git.hswro.org/fleg/serve_base:caddy
|
||||||
|
|
||||||
# Copy the static website
|
# Copy the static website
|
||||||
# Use the .dockerignore file to control what ends up inside the image!
|
# Use the .dockerignore file to control what ends up inside the image!
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,7 @@
|
||||||
FROM busybox:stable
|
FROM caddy:2.9
|
||||||
|
|
||||||
# Create a non-root user to own the files and run our server
|
RUN echo -e ":3000 {\n\
|
||||||
RUN adduser -D static
|
root * /var/www\n\
|
||||||
USER static
|
file_server\n\
|
||||||
WORKDIR /home/static
|
}" > /etc/caddy/Caddyfile
|
||||||
|
WORKDIR /var/www
|
||||||
# Run BusyBox httpd
|
|
||||||
CMD ["busybox", "httpd", "-f", "-v", "-p", "3000"]
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue