diff --git a/backend/.dockerignore b/backend/.dockerignore new file mode 100644 index 0000000..acced1b --- /dev/null +++ b/backend/.dockerignore @@ -0,0 +1,6 @@ +node_modules/ +tokens/ +dist/ +migrations/ +dev.db +package-lock.json \ No newline at end of file diff --git a/backend/Dockerfile b/backend/Dockerfile index 4478ac4..e68db85 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -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 \ No newline at end of file diff --git a/backend/package.json b/backend/package.json index 4454032..5ecab6b 100644 --- a/backend/package.json +++ b/backend/package.json @@ -3,7 +3,6 @@ "version": "1.0.0", "private": true, "scripts": { - "seed": "node prisma/seed.js", "start": "node app.js" }, "dependencies": {