Logo
Explore Help
Sign In
kaezhou/iloom-flatten
1
0
Fork 0
You've already forked iloom-flatten
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
iloom-flatten/Dockerfile

13 lines
332 B
Docker
Raw Normal View History

fix: use Harbor base images for CI builds Docker Hub unreachable from k3s cluster. Switch Dockerfile to pull node and nginx base images from Harbor registry. Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-17 10:17:38 +08:00
ARG BASE_REGISTRY=harbor-in-k3s.cheverjohn.me/library
FROM ${BASE_REGISTRY}/node:20-alpine AS builder
feat: add Dockerfile and GitLab CI pipeline for Harbor Multi-stage Docker build: node:20-alpine + nginx:1.27-alpine. CI builds and pushes to harbor-in-k3s.cheverjohn.me/iloom/iloom-frontend. Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-17 10:01:55 +08:00
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build
fix: use Harbor base images for CI builds Docker Hub unreachable from k3s cluster. Switch Dockerfile to pull node and nginx base images from Harbor registry. Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-17 10:17:38 +08:00
FROM ${BASE_REGISTRY}/nginx:1.27-alpine
feat: add Dockerfile and GitLab CI pipeline for Harbor Multi-stage Docker build: node:20-alpine + nginx:1.27-alpine. CI builds and pushes to harbor-in-k3s.cheverjohn.me/iloom/iloom-frontend. Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-17 10:01:55 +08:00
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 3015
CMD ["nginx", "-g", "daemon off;"]
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 27ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API