11# Stage 1 - Create yarn install skeleton layer
2- FROM --platform=$BUILDPLATFORM node:16-bullseye -slim AS packages
2+ FROM --platform=$BUILDPLATFORM node:18-bookworm -slim AS packages
33
44WORKDIR /app
55COPY package.json yarn.lock ./
@@ -12,7 +12,7 @@ COPY plugins plugins
1212RUN find packages \! -name "package.json" -mindepth 2 -maxdepth 2 -exec rm -rf {} \+
1313
1414# Stage 2 - Install dependencies and build packages
15- FROM --platform=$BUILDPLATFORM node:16-bullseye -slim AS build
15+ FROM --platform=$BUILDPLATFORM node:18-bookworm -slim AS build
1616
1717RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
1818 --mount=type=cache,target=/var/lib/apt,sharing=locked \
@@ -42,7 +42,7 @@ RUN mkdir packages/backend/dist/skeleton packages/backend/dist/bundle \
4242 && tar xzf packages/backend/dist/bundle.tar.gz -C packages/backend/dist/bundle
4343
4444# Stage 3 - Build the actual backend image and install production dependencies
45- FROM --platform=$TARGETPLATFORM node:16-bullseye -slim
45+ FROM --platform=$TARGETPLATFORM node:18-bookworm -slim
4646
4747# Install sqlite3 dependencies. You can skip this if you don't use sqlite3 in the image,
4848# in which case you should also move better-sqlite3 to "devDependencies" in package.json.
@@ -59,7 +59,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
5959 apt-get install -y --no-install-recommends python3 g++ build-essential python3-pip && \
6060 yarn config set python /usr/bin/python3
6161
62- RUN pip3 install mkdocs-techdocs-core==1.1.7
62+ RUN pip3 install mkdocs-techdocs-core==1.1.7 --break-system-packages
6363
6464# From here on we use the least-privileged `node` user to run the backend.
6565USER node
@@ -81,8 +81,6 @@ COPY --from=build --chown=node:node /app/packages/backend/dist/bundle/ ./
8181# Copy any other files that we need at runtime
8282COPY --chown=node:node app-config.yaml app-config.production.yaml ./
8383
84- COPY --chown=node:node tibco-examples ./tibco-examples
85-
8684# Copy license file
8785COPY --chown=node:node LICENSE.TXT /opt/tibco/license/
8886
0 commit comments