CI / test (pull_request) Successful in 42s
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>
14 lines
621 B
Docker
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
|