From 666df5fc3b64c6cc9f6fc03fed46a441d7fcd315 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sat, 13 Dec 2025 00:50:07 -0800 Subject: Add entrypoint which replaces static with prod url --- Dockerfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index f993163..ffc3d7c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,18 @@ -FROM nginx:alpine as adelie +FROM nginx:alpine +# Copy static assets COPY static/ /usr/share/nginx/html/ +# Copy nginx configuration COPY nginx.conf /etc/nginx/nginx.conf +# Copy entrypoint script +COPY docker-entrypoint.sh /usr/local/bin/ +RUN chmod +x /usr/local/bin/docker-entrypoint.sh + EXPOSE 80 HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ CMD wget --quiet --tries=1 --spider http://localhost/ || exit 1 + +ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"] -- cgit v1.2.3-70-g09d2