Skip to content

Commit

Permalink
fix copy command
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfagun74 committed Jul 30, 2023
1 parent a17c160 commit 2b6f2da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,18 @@ WORKDIR /app

FROM base AS build
# Copy files only needed for install
COPY package.json pnpm-lock.yaml ./
COPY package.json pnpm-lock.yaml deployment-scripts ./
RUN pnpm install --frozen-lockfile
# Copy everything for building
COPY . .
RUN pnpm run build

FROM base AS prod-deps
COPY package.json pnpm-lock.yaml deployment/ ./
COPY package.json pnpm-lock.yaml deployment-scripts ./
RUN pnpm install --prod --frozen-lockfile
# Optional compability mode for older CPUs
RUN /bin/sh deployment/compability-mode.sh

# Enables compability mode for older CPUs
RUN /bin/sh deployment-scripts/old-cpu-compability-mode.sh

FROM base AS release
ENV NODE_ENV=production
Expand Down
File renamed without changes.

0 comments on commit 2b6f2da

Please sign in to comment.