Files
tsumugu/frontend/Dockerfile
T
LarsandCursor cbd45a8997
Deploy Development / deploy (push) Successful in 26s
Test Suite / pytest-backend (push) Successful in 1m35s
Test Suite / smoke-dev (push) Successful in 1s
Test Suite / frontend-build (push) Successful in 9s
Kennzeichne die Entwicklungsumgebung in der Oberflaeche, damit sie sich von Produktion unterscheiden laesst.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 22:25:45 +02:00

23 lines
439 B
Docker

FROM node:22-alpine AS build
WORKDIR /src
COPY package.json package-lock.json ./
RUN npm ci
COPY index.html vite.config.js mark-environment.mjs ./
COPY public ./public
COPY src ./src
ARG VITE_TSUMUGU_ENV=production
ENV VITE_TSUMUGU_ENV=$VITE_TSUMUGU_ENV
RUN npm run build
FROM nginx:alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /src/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]