feat: dockerfile and docker-compose
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
FROM node:17
|
||||
WORKDIR /app
|
||||
COPY ./package.json ./
|
||||
RUN npm install
|
||||
COPY . .
|
||||
RUN npx prisma generate
|
||||
RUN npm run build
|
||||
CMD ["npm", "run", "start:prod"]
|
||||
@@ -0,0 +1,7 @@
|
||||
FROM node:17
|
||||
WORKDIR /app
|
||||
COPY ./package.json ./
|
||||
RUN npm install
|
||||
COPY . .
|
||||
RUN npx prisma generate
|
||||
CMD [ "npm" , "run", "start:dev"]
|
||||
@@ -1,5 +1,6 @@
|
||||
// This is your Prisma schema file,
|
||||
// learn more about it in the docs: https://pris.ly/d/prisma-schema generator client {
|
||||
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
||||
generator client {
|
||||
provider = "prisma-client-js"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user