File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
ARG NODE_VERSION=22.14.0
2
2
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
4
5
5
6
FROM base AS build-dependencies
6
7
RUN apt-get update \
@@ -25,7 +26,7 @@ FROM base AS final
25
26
RUN npm uninstall -g --logs-max=0 corepack npm
26
27
USER node
27
28
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
30
31
31
32
CMD ["node" , "lib/index.js" ]
Original file line number Diff line number Diff line change 1
- version : 1.12.4
1
+ version : 1.12.5
You can’t perform that action at this time.
0 commit comments