This repository has been archived on 2026-11-21. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
artifactapi/ui/Dockerfile.ui
T
unkin-agent 0be7e2250a Add GitHub Actions CI and image release (#184)
Releases and CI move to GitHub Actions on the IUCLabs mirror; runners there have no Docker daemon, so images are built daemonless and published to GHCR.

- Add `ci.yml`: pre-commit, go vet + golangci-lint (new issues only), tests, build, ko image check, UI build
- Add `release.yml`: on `v[0-9]*` tags, push `ghcr.io/iuclabs/artifactapi-ui` (`scripts/ui-image.sh` layers `ui/dist` + nginx conf onto digest-pinned `nginx:alpine`), then `ghcr.io/iuclabs/artifactapi` via ko (distroless static nonroot, version ldflag)
- Both images carry `org.opencontainers.image.source`; `latest` moves only after both `vX.Y.Z` tags exist
- Pin `ui/Dockerfile.ui` to the same nginx digest
- Remove the Woodpecker docker pipeline; PR pipelines stay
- Add `.github/CODEOWNERS` for `@IUCLabs/maintainers`

Reviewed-on: #184
Co-authored-by: unkin-agent <unkin-agent@unkin.net>
Co-committed-by: unkin-agent <unkin-agent@unkin.net>
2026-11-20 23:31:51 +11:00

26 lines
500 B
Docker

FROM node:22-alpine AS builder
WORKDIR /app
COPY package.json package-lock.json* ./
RUN npm ci
COPY . .
ARG BASE_PATH=/
ENV BASE_PATH=${BASE_PATH}
RUN npm run build
FROM nginx:alpine@sha256:fb4658584bd9a916ffb6f6e365f97c25cfdb2923801f551ea08356e695f14ff7
ARG BASE_PATH=/
COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
RUN sed -i "s|\${BASE_PATH}|${BASE_PATH}|g" /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]