Last active
June 6, 2024 20:11
-
-
Save chrisvasqm/f0195d0025b288bf1c4a1fc05f15635d to your computer and use it in GitHub Desktop.
Sample Dockerfile for a Node backend using Prisma and pnpm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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