Skip to content

Instantly share code, notes, and snippets.

@chrisvasqm
Last active June 6, 2024 20:11
Show Gist options
  • Save chrisvasqm/f0195d0025b288bf1c4a1fc05f15635d to your computer and use it in GitHub Desktop.
Save chrisvasqm/f0195d0025b288bf1c4a1fc05f15635d to your computer and use it in GitHub Desktop.
Sample Dockerfile for a Node backend using Prisma and pnpm
FROM node:20.14.0-alpine3.20
WORKDIR /app
COPY . .
RUN npm install -g pnpm
RUN pnpm install
RUN pnpm generate
RUN pnpm migrate
RUN pnpm build
EXPOSE 3000
USER node
CMD ["pnpm", "start"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment