Fix back dockerfile
This commit is contained in:
10
back/.dockerignore
Normal file
10
back/.dockerignore
Normal file
@@ -0,0 +1,10 @@
|
||||
node_modules
|
||||
Dockerfile
|
||||
Dockerfile.dev
|
||||
dist
|
||||
test
|
||||
.dockerignore
|
||||
.gitignore
|
||||
.eslintrc.json
|
||||
.pretiierrc
|
||||
README.MD
|
||||
@@ -1,7 +1,8 @@
|
||||
FROM node:17
|
||||
WORKDIR /app
|
||||
COPY ./package.json ./
|
||||
RUN npm install
|
||||
COPY ./package.json ./package-lock.json ./
|
||||
RUN npm install --frozen-lockfile
|
||||
COPY . .
|
||||
RUN npx prisma generate
|
||||
RUN npm run build
|
||||
CMD npx prisma generate ; npx prisma migrate dev ; npm run start:prod
|
||||
CMD npx prisma migrate ; npm run start:prod
|
||||
|
||||
Reference in New Issue
Block a user