Skip to content

Commit e11081a

Browse files
Replace /dev path with /usr/src/app (#470)
/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
1 parent 2e94a97 commit e11081a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docker.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ ENV PATH="$PNPM_HOME:$PATH"
107107
RUN corepack enable
108108

109109
FROM base AS build
110-
COPY . /dev
111-
WORKDIR /dev
110+
COPY . /usr/src/app
111+
WORKDIR /usr/src/app
112112
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
113113
RUN pnpm run -r build
114114
RUN pnpm deploy --filter=app1 --prod /prod/app1

0 commit comments

Comments
 (0)