fp/services/our/Dockerfile
CJ_Clippy 9e4575c343
Some checks failed
ci / build (push) Failing after 1s
ci / Tests & Checks (push) Failing after 1s
generate prisma client in docker container
2025-07-14 05:44:16 -08:00

38 lines
743 B
Docker

FROM node:22
# Set working directory
WORKDIR /app
# Install system-level dependencies
RUN apt-get update -y && \
apt-get install -y --no-install-recommends \
build-essential \
git \
inotify-tools \
ffmpeg \
mktorrent \
python3 \
python3-pip \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# Copy and install dependencies
COPY package.json package-lock.json ./
RUN npm install --ignore-scripts=false --foreground-scripts --verbose
# Copy Prisma schema and generate client
COPY prisma ./prisma
RUN npx prisma generate
# Copy the rest of the code
COPY . .
# Build the app
RUN npm run build
# Expose the port
EXPOSE 5000
# Start the app
CMD ["npm", "run", "start:server"]