chore: updated dockerfile to install deps less

This commit is contained in:
Andrew Bastin
2023-02-08 21:13:49 +05:30
parent 46579900cd
commit 3cf3feb2ae
2 changed files with 12 additions and 6 deletions

View File

@@ -5,13 +5,16 @@ WORKDIR /usr/src/app
# # Install pnpm
RUN npm i -g pnpm
# Prisma bits
COPY prisma ./prisma/
RUN pnpx prisma generate
COPY pnpm-lock.yaml .
RUN pnpm fetch
# # PNPM package install
COPY . .
RUN pnpm i
COPY ./packages/hoppscotch-backend .
RUN pnpm i --filter hoppscotch-backend
# Prisma bits
RUN pnpm exec prisma generate
EXPOSE 3170
EXPOSE 9229

View File

@@ -1,7 +1,10 @@
version: '3.0'
services:
local:
build: .
build:
dockerfile: packages/hoppscotch-backend/Dockerfile
context: ../../
env_file:
- .env
command: [ "pnpm", "run", "start:dev" ]