Skip to content

Commit

Permalink
Update Dockerfile and package.json for backend service, and add Prism…
Browse files Browse the repository at this point in the history
…a migration
  • Loading branch information
mauriciobellon committed Apr 22, 2024
1 parent 17d741e commit 920a310
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions backend/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules/
tokens/
dist/
migrations/
dev.db
package-lock.json
5 changes: 3 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM node
WORKDIR /app
COPY . .
RUN npm install --silent
RUN npm seed
RUN npm install
RUN npm install -g prisma
RUN npx prisma migrate dev --name init
CMD npm start
1 change: 0 additions & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"version": "1.0.0",
"private": true,
"scripts": {
"seed": "node prisma/seed.js",
"start": "node app.js"
},
"dependencies": {
Expand Down

0 comments on commit 920a310

Please sign in to comment.