Files
vontor-cz/frontend/Dockerfile.prod
Brunobrno 264f0116ae Add playlist support to downloader API and frontend
Enhanced the downloader backend and frontend to support playlist URLs for video info and downloads. The API now returns structured playlist information, allows selecting specific videos for download, and returns a ZIP file for playlist downloads. Updated OpenAPI types, removed deprecated parameters (start_time, end_time, playlist_items), and improved Content Security Policy handling in nginx. Refactored frontend to handle playlist selection and updated generated API models accordingly.
2025-12-25 04:54:27 +01:00

26 lines
520 B
Docker

# Step 1: Build React (Vite) app
FROM node:22 AS build
WORKDIR /app
# Copy package files
COPY package*.json ./
# Clean install
RUN npm ci --legacy-peer-deps
# Copy source files
COPY . .
ENV NODE_ENV=production
# Skip Orval - use pre-generated files committed to git
ENV SKIP_ORVAL=true
# Build the app
RUN npm run build
# Step 2: Nginx runtime
FROM nginx:1.27-alpine
COPY nginx/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]