Files
plex-playlist/Dockerfile.frontend
copilotcoder 6f3d96d6ef
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
Handle missing frontend .yarn directory in runtime build
2026-07-06 18:59:05 -04:00

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;"]