PhiloMind / Dockerfile
github-actions[bot]
Deploy Backend from GitHub Actions Commit: 5d798ac013c4f49d4d351e0deea2f3916bde69d6
90230b2
Raw
History Blame Contribute Delete
401 Bytes
FROM node:22-alpine
WORKDIR /app
# Install openssl for Prisma compatibility
RUN apk add --no-cache openssl curl
# Copy dependencies manifest
COPY package*.json ./
# Install packages
RUN npm ci
# Copy code
COPY . .
# Generate Prisma client
RUN npx prisma generate
# Build typescript compilation
RUN npm run build
ENV PORT=7860
EXPOSE 7860
# Bootstraps API server
CMD ["node", "dist/src/main"]