Files
admin/Dockerfile.web
lafay ff77b46f79
Some checks failed
Admin CI / build-and-push-web (push) Failing after 2m50s
build: add Docker and nginx configuration for deployment
Added Dockerfile.web for containerizing the web application and nginx.conf
for serving the application in production. Also included .gitea/ directory
for CI/CD configuration.
2026-04-04 00:20:45 +08:00

17 lines
259 B
Docker

FROM node:20-alpine AS builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM nginx:1.27-alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 80