Skip to content

Commit

Permalink
Replace /dev path with /usr/src/app (#470)
Browse files Browse the repository at this point in the history
/dev is a reserved path on linux for hardware mount points, the example as it stands currently will not work, as COPY . /dev does not actually copy files and the install command afterwards fails
  • Loading branch information
JonasGruenwald authored Oct 26, 2023
1 parent 2e94a97 commit e11081a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable

FROM base AS build
COPY . /dev
WORKDIR /dev
COPY . /usr/src/app
WORKDIR /usr/src/app
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
RUN pnpm run -r build
RUN pnpm deploy --filter=app1 --prod /prod/app1
Expand Down

0 comments on commit e11081a

Please sign in to comment.