chore: minor changes to Dockerfile

This commit is contained in:
ankitsridhar16
2022-12-15 23:21:21 +05:30
parent 8e038f6944
commit 08cc7114ac
2 changed files with 5 additions and 5 deletions

View File

@@ -6,10 +6,10 @@ WORKDIR /usr/src/app
RUN npm i -g pnpm RUN npm i -g pnpm
# Prisma bits # Prisma bits
COPY prisma ./ COPY prisma ./prisma/
RUN pnpx prisma generate RUN pnpx prisma generate
# # NPM package install # # PNPM package install
COPY . . COPY . .
RUN pnpm i RUN pnpm i

View File

@@ -6,9 +6,9 @@ services:
- PRODUCTION=false - PRODUCTION=false
- DATABASE_URL=postgresql://postgres:testpass@dev-db:5432/hoppscotch?connect_timeout=300 - DATABASE_URL=postgresql://postgres:testpass@dev-db:5432/hoppscotch?connect_timeout=300
- PORT=3000 - PORT=3000
# volumes: volumes:
# - .:/usr/src/app - .:/usr/src/app
# - /usr/src/app/node_modules/ - /usr/src/app/node_modules/
depends_on: depends_on:
- dev-db - dev-db
ports: ports: