added MAX_AGE env variable
nclazz/static-webserver-docker/pipeline/head This commit looks good
Details
nclazz/static-webserver-docker/pipeline/head This commit looks good
Details
parent
3ab573d7e7
commit
82c09aac4a
|
@ -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}"]
|
Loading…
Reference in New Issue