forked from HSWro/hswro_org
Compare commits
No commits in common. "0e24d676ac10623acc95d51a6fd5fb0cf57858ff" and "9b5599462a720c17c1d963aee363f968bc8a808a" have entirely different histories.
0e24d676ac
...
9b5599462a
|
|
@ -1,4 +1,4 @@
|
||||||
FROM git.hswro.org/fleg/serve_base:caddy
|
FROM git.hswro.org/fleg/serve_base:latest
|
||||||
|
|
||||||
# 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,7 +1,9 @@
|
||||||
FROM caddy:2.9
|
FROM busybox:stable
|
||||||
|
|
||||||
RUN echo -e ":3000 {\n\
|
# Create a non-root user to own the files and run our server
|
||||||
root * /var/www\n\
|
RUN adduser -D static
|
||||||
file_server\n\
|
USER static
|
||||||
}" > /etc/caddy/Caddyfile
|
WORKDIR /home/static
|
||||||
WORKDIR /var/www
|
|
||||||
|
# Run BusyBox httpd
|
||||||
|
CMD ["busybox", "httpd", "-f", "-v", "-p", "3000"]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue