chore: skip dev dependencies on prod Dockerfile
This commit is contained in:
parent
ebf11b5d57
commit
5b073ee32a
1 changed files with 2 additions and 2 deletions
|
@ -20,13 +20,13 @@ COPY package.json ./
|
|||
COPY .npmrc ./
|
||||
COPY pnpm-lock.yaml ./
|
||||
COPY patches ./patches
|
||||
RUN pnpm i --frozen-lockfile --ignore-scripts
|
||||
RUN pnpm i --frozen-lockfile --ignore-scripts --prod
|
||||
|
||||
# Copy all source files
|
||||
COPY . ./
|
||||
|
||||
# Run full install with every postinstall script ( This needs project file )
|
||||
RUN pnpm i --frozen-lockfile
|
||||
RUN pnpm i --frozen-lockfile --prod
|
||||
|
||||
# Build
|
||||
RUN pnpm build
|
||||
|
|
Loading…
Reference in a new issue