39948-vm/Dockerfile
2026-04-14 03:10:27 +00:00

24 lines
490 B
Docker

FROM node:20.15.1-alpine AS builder
RUN apk add --no-cache git
WORKDIR /app
COPY frontend/package.json frontend/yarn.lock ./
RUN yarn install --pure-lockfile
COPY frontend .
RUN yarn build
FROM node:20.15.1-alpine
# Install FFmpeg for video processing (reversed video generation)
RUN apk add --no-cache ffmpeg
WORKDIR /app
COPY backend/package.json backend/yarn.lock ./
RUN yarn install --pure-lockfile
COPY backend .
COPY --from=builder /app/build /app/public
CMD ["yarn", "start"]