Files
threshing-atlas/Dockerfile
T
kschianoandClaude Opus 5.5 bbea5db2ee
CI / test (pull_request) Successful in 42s
Publish the site as a container on the cluster instead of the pages branch
Every push to main builds the page into an nginx image and pushes it to
harbor.kenschiano.net/home/threshing-atlas; Argo CD Image Updater rolls the
deployment (kubefiles web/threshing-atlas) at https://threshingatlas.kenschiano.net.
forge.yaml now names that address.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 20:38:46 -05:00

14 lines
621 B
Docker

# The published Atlas page as a container: build the static site (npm run build -> dist/), then serve it with an
# unprivileged nginx on port 8080. .gitea/workflows/image.yml builds this on every push to main and pushes it to
# harbor.kenschiano.net/home/threshing-atlas:latest; Argo CD Image Updater rolls the deployment (kubefiles,
# web/threshing-atlas) when that digest changes.
FROM node:22-alpine AS build
WORKDIR /src
COPY . .
RUN node site/build.js /site
FROM nginxinc/nginx-unprivileged:1.28-alpine
COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /site /usr/share/nginx/html
EXPOSE 8080