This repository has been archived on 2026-02-01. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
siri-shortcuts/Dockerfile
Riccardo Senica 029a7ee7d3
Some checks failed
Deploy / lint-build-deploy (push) Failing after 49s
build: push prisma schema
2026-02-01 13:07:37 +01:00

24 lines
424 B
Docker

FROM node:18-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
FROM node:18-alpine
WORKDIR /app
ENV NODE_ENV=production
COPY --from=builder /app/.next ./.next
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/package.json ./package.json
COPY --from=builder /app/prisma ./prisma
EXPOSE 3000
CMD npx prisma db push --skip-generate && npm start