diff options
| author | Elizabeth Hunt <me@liz.coffee> | 2025-12-13 00:50:07 -0800 |
|---|---|---|
| committer | Elizabeth Hunt <me@liz.coffee> | 2025-12-13 00:50:07 -0800 |
| commit | 666df5fc3b64c6cc9f6fc03fed46a441d7fcd315 (patch) | |
| tree | 19d2b927e8fd358f63b340f2edbd1f5341e51642 /Dockerfile | |
| parent | 4cb732c77da7c350a656f1d12504b499fb2d80c5 (diff) | |
| download | adelie-666df5fc3b64c6cc9f6fc03fed46a441d7fcd315.tar.gz adelie-666df5fc3b64c6cc9f6fc03fed46a441d7fcd315.zip | |
Add entrypoint which replaces static with prod url
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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"] |
