Some checks failed
CICD / Build and Publish CICD Base Image (push) Successful in 28s
CICD / Build and Push CICD Image (push) Successful in 24m24s
CICD / Pre-commit Checks (push) Successful in 2m50s
CICD / Frontend Tests (push) Successful in 36s
CICD / Backend Doctests (push) Successful in 17s
CICD / Backend Tests (push) Successful in 8m1s
CICD / Build and Publish Runtime Images (push) Failing after 13m13s
CICD / Runtime Black-Box Integration Tests (push) Has been cancelled
CICD / End-to-End Tests (push) Has been cancelled
20 lines
427 B
Docker
20 lines
427 B
Docker
# Frontend Dockerfile for Vue/Vite TypeScript project
|
|
FROM node:24-alpine AS build
|
|
|
|
WORKDIR /app
|
|
|
|
COPY frontend/package.json frontend/yarn.lock frontend/.yarnrc.yml ./
|
|
RUN corepack enable && yarn install --immutable
|
|
|
|
COPY frontend/ .
|
|
RUN yarn build
|
|
|
|
FROM nginx:alpine AS production
|
|
|
|
COPY --from=build /app/dist /usr/share/nginx/html
|
|
COPY frontend/nginx.conf /etc/nginx/nginx.conf
|
|
|
|
EXPOSE 80
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|