diff options
| author | Elizabeth Hunt <me@liz.coffee> | 2025-12-13 17:03:24 -0800 |
|---|---|---|
| committer | Elizabeth Hunt <me@liz.coffee> | 2025-12-13 17:03:24 -0800 |
| commit | 93f80150a1d07cf3ce51447636c7f8cd510832f1 (patch) | |
| tree | eaa4c7cf4d40e8a2dc86b2119894d9e0de10d7f3 /Dockerfile | |
| parent | eb14a9b6263a3dd65fc62e1611c6da067a80ca00 (diff) | |
| download | adelie-93f80150a1d07cf3ce51447636c7f8cd510832f1.tar.gz adelie-93f80150a1d07cf3ce51447636c7f8cd510832f1.zip | |
Syntax highlighting and a real repo struct
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 21 |
1 files changed, 15 insertions, 6 deletions
@@ -1,15 +1,24 @@ -FROM nginx:alpine as adelie +FROM node:22-alpine AS builder -COPY static/ /usr/share/nginx/html/ +ARG HOST="adelie.liz.coffee" +ENV HOST=${HOST} -COPY nginx.conf /etc/nginx/nginx.conf +WORKDIR /app +COPY package*.json ./ +RUN npm ci --only=production + +COPY src/ ./src/ +COPY esbuild.config.js ./ +RUN npm run build -COPY docker-entrypoint.sh /usr/local/bin/ -RUN chmod +x /usr/local/bin/docker-entrypoint.sh +FROM nginx:alpine as adelie + +COPY --from=builder /app/dist/ /usr/share/nginx/html/ +COPY nginx.conf /etc/nginx/nginx.conf 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"] +CMD ["nginx", "-g", "daemon off;"] |
