summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorElizabeth Alexander Hunt <me@liz.coffee>2026-07-23 10:01:16 -0700
committerElizabeth Alexander Hunt <me@liz.coffee>2026-07-23 10:02:47 -0700
commit8ee2b45b5b889924e91f25f8072dbd584680315e (patch)
tree70ecacc0cf04ca1a0987dea3dab0fd7b874ff75f /Dockerfile
parent8e09d75db41961ed72b0d12dcb5337049dda77ac (diff)
downloadlizdotcoffee-8ee2b45b5b889924e91f25f8072dbd584680315e.tar.gz
lizdotcoffee-8ee2b45b5b889924e91f25f8072dbd584680315e.zip
Add commit hash
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index 18fb23b..749feba 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -9,6 +9,9 @@ RUN rm -f /usr/share/nginx/html/index.html /usr/share/nginx/html/50x.html
COPY html /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
+ARG COMMIT=unknown
+RUN printf '%s' "$COMMIT" > /usr/share/nginx/commit
+
EXPOSE 80
CMD ["sh", "-c", "php-fpm84 -D && nginx -g 'daemon off;'"]