diff --git a/Dockerfile b/Dockerfile index 9aa536c..e0049bc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ ARG NODE_VERSION=22.14.0 FROM node:${NODE_VERSION}-bookworm-slim AS base -WORKDIR /app +# that workdir MUST NOT be changed because of backward compatibility with the engine <= 1.177.7 +WORKDIR /root/cf-runtime FROM base AS build-dependencies RUN apt-get update \ @@ -25,7 +26,7 @@ FROM base AS final RUN npm uninstall -g --logs-max=0 corepack npm USER node -COPY --from=prod-dependencies --chown=node:node /app/node_modules node_modules -COPY --from=build --chown=node:node /app/dist lib +COPY --from=prod-dependencies --chown=node:node /root/cf-runtime/node_modules node_modules +COPY --from=build --chown=node:node /root/cf-runtime/dist lib CMD ["node", "lib/index.js"] diff --git a/service.yaml b/service.yaml index ffb8663..dd57bb0 100644 --- a/service.yaml +++ b/service.yaml @@ -1 +1 @@ -version: 1.12.4 +version: 1.12.5