Skip to content

Commit a16a8a6

Browse files
authored
fix: setting workdir in order to get app folder created (#701)
* fix: setting workdir in order to get app folder created The app folder could also be simply created, but it's better aligned with best practises anyway to set the workdir. * fix: removed incorrectly placed workdir
1 parent e62b6f4 commit a16a8a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

versioned_docs/version-9.x/docker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ So an alternative is to use a typical Dockerfile with layers that are built incr
142142

143143
```dockerfile title="Dockerfile"
144144
FROM node:20-slim AS base
145+
WORKDIR /app
145146

146147
ENV PNPM_HOME="/pnpm"
147148
ENV PATH="$PNPM_HOME:$PATH"
@@ -150,7 +151,6 @@ RUN corepack enable
150151
FROM base AS prod
151152

152153
COPY pnpm-lock.yaml /app
153-
WORKDIR /app
154154
RUN pnpm fetch --prod
155155

156156
COPY . /app

0 commit comments

Comments
 (0)