Adds frontend skeleton. Needs cleanup

This commit is contained in:
2025-02-15 01:26:10 -08:00
parent 9c3a1d84d1
commit bcc8860b30
23 changed files with 468 additions and 17 deletions

36
Dockerfile Normal file
View File

@@ -0,0 +1,36 @@
# Build stage
FROM node:20-slim AS builder
WORKDIR /app
# Copy package files
COPY package*.json ./
COPY frontend/package*.json ./frontend/
# Install dependencies
RUN npm ci
RUN cd frontend && npm ci
# Copy source files
COPY . .
# Build frontend and backend
RUN npm run build
# Production stage
FROM alpine:edge
RUN apk update && apk add mpv npm yt-dlp pulseaudio pulseaudio-utils
WORKDIR /app
# Install only production dependencies
COPY package*.json ./
RUN npm ci --production
# Copy built files
COPY --from=builder /app/build ./build
COPY --from=builder /app/frontend/dist ./dist/frontend
EXPOSE 3000
CMD ["node", "build/server.js"]