الملفات
FlowSync/Dockerfile
Mino484 1fda64ec43
فشلت بعض الفحوصات
Release Please / release-please (push) Has been cancelled
Docker Build and Push (Development) / build-and-push-dev (push) Has been cancelled
working v1
2025-11-17 17:19:47 +03:00

33 أسطر
557 B
Docker

FROM node:20-alpine AS builder
# Install build dependencies
RUN apk add --no-cache python3 make g++ ffmpeg && \
ln -sf python3 /usr/bin/python
WORKDIR /usr/app-production
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# Remove dev dependencies
RUN npm prune --production
FROM node:20-alpine
ENV FS_DIRECTORY=/data/
ENV TEMP_DIRECTORY=/temp/
# Install runtime dependencies
RUN apk add --no-cache ffmpeg
WORKDIR /usr/app-production
COPY --from=builder /usr/app-production .
EXPOSE 8080
EXPOSE 3000
CMD ["npm", "run", "start"]