added MAX_AGE env variable
nclazz/static-webserver-docker/pipeline/head This commit looks good Details

master
Niclas Thobaben 2022-02-10 19:44:27 +01:00
parent 3ab573d7e7
commit 82c09aac4a
1 changed files with 3 additions and 1 deletions

View File

@ -37,5 +37,7 @@ WORKDIR /home/static
# Use the .dockerignore file to control what ends up inside the image!
COPY . .
ENV MAX_AGE=60
# Run thttpd
CMD ["/thttpd", "-D", "-h", "0.0.0.0", "-p", "80", "-d", "/home/static", "-u", "static", "-l", "-", "-M", "60"]
CMD ["/thttpd", "-D", "-h", "0.0.0.0", "-p", "80", "-d", "/home/static", "-u", "static", "-l", "-", "-M", "${MAX_AGE}"]