Some checks are pending
docker / build-and-push (push) Waiting to run
Dark-mode Portfolio mit Scroll-Animationen, Custom Cursor, Skill-Bars und Docker-Pipeline zu Gitea Packages.
15 lines
406 B
Docker
15 lines
406 B
Docker
# Multi-stage: build mit Vite, serven mit nginx
|
|
FROM node:20-alpine AS build
|
|
WORKDIR /app
|
|
COPY package.json ./
|
|
RUN npm install
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
FROM nginx:alpine
|
|
COPY --from=build /app/dist /usr/share/nginx/html
|
|
# Gitea-Container-Registry-Host als Cache-bust, sonst Standard-port 80
|
|
EXPOSE 80
|
|
HEALTHCHECK --interval=30s --timeout=3s \
|
|
CMD wget -qO- http://localhost/ >/dev/null 2>&1 || exit 1
|