Skip to content

Commit df836f9

Browse files
committed
added prisma configuration file and included it in docker build
1 parent 1ad9bb1 commit df836f9

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ RUN yarn install --frozen-lockfile --production && yarn cache clean
3131
COPY --from=builder /app/dist ./dist
3232
COPY --from=builder /app/node_modules/.prisma ./node_modules/.prisma
3333
COPY prisma ./prisma
34+
COPY prisma.config.js ./
3435

3536
RUN chown -R nodejs:nodejs /app
3637

prisma.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Prisma config for runtime (migrations, db push, etc.)
2+
module.exports = {
3+
schema: './prisma/schema.prisma',
4+
datasource: {
5+
url: process.env.DATABASE_URL,
6+
},
7+
};

0 commit comments

Comments
 (0)