Skip to content

Commit 0dba7c7

Browse files
fix(CR-28812): revert WORKDIR (#147)
* revert WORKDIR
1 parent 9dca24e commit 0dba7c7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Dockerfile

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
ARG NODE_VERSION=22.14.0
22
FROM node:${NODE_VERSION}-bookworm-slim AS base
3-
WORKDIR /app
3+
# that workdir MUST NOT be changed because of backward compatibility with the engine <= 1.177.7
4+
WORKDIR /root/cf-runtime
45

56
FROM base AS build-dependencies
67
RUN apt-get update \
@@ -25,7 +26,7 @@ FROM base AS final
2526
RUN npm uninstall -g --logs-max=0 corepack npm
2627
USER node
2728

28-
COPY --from=prod-dependencies --chown=node:node /app/node_modules node_modules
29-
COPY --from=build --chown=node:node /app/dist lib
29+
COPY --from=prod-dependencies --chown=node:node /root/cf-runtime/node_modules node_modules
30+
COPY --from=build --chown=node:node /root/cf-runtime/dist lib
3031

3132
CMD ["node", "lib/index.js"]

service.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: 1.12.4
1+
version: 1.12.5

0 commit comments

Comments
 (0)