diff options
| author | Elizabeth Hunt <me@liz.coffee> | 2025-12-13 17:11:43 -0800 |
|---|---|---|
| committer | Elizabeth Hunt <me@liz.coffee> | 2025-12-13 17:11:43 -0800 |
| commit | db0d9b80b4412a46cae0e58997f4baa7213948e3 (patch) | |
| tree | 43e3c79ed683cbbc073ec4723316b2060a4a3db4 /Dockerfile | |
| parent | f7758b5ec2f7d34a16bee6ace52e362908770557 (diff) | |
| download | adelie-db0d9b80b4412a46cae0e58997f4baa7213948e3.tar.gz adelie-db0d9b80b4412a46cae0e58997f4baa7213948e3.zip | |
Fixes host path
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,8 +1,5 @@ FROM node:22-alpine AS builder -ARG HOST="adelie.liz.coffee" -ENV HOST=${HOST} - WORKDIR /app COPY package*.json ./ RUN npm ci @@ -13,12 +10,17 @@ RUN npm run build FROM nginx:alpine as adelie +ENV HOST=https://adelie.liz.coffee + COPY --from=builder /app/dist/ /usr/share/nginx/html/ COPY nginx.conf /etc/nginx/nginx.conf +COPY docker-entrypoint.sh /docker-entrypoint.sh + +RUN chmod +x /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 -CMD ["nginx", "-g", "daemon off;"] +ENTRYPOINT ["/docker-entrypoint.sh"] |
