From a250142a86e07ec7047e642afa16492fa4987f9a Mon Sep 17 00:00:00 2001 From: Sergey Krylov Date: Sat, 24 Oct 2026 20:48:55 +0300 Subject: [PATCH] fix: use available Debian packages in image build (#129) --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3ca3d76..fd93dca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ WORKDIR /app FROM base AS dependencies # Native SQLite/bcrypt builds happen only here; compilers stay out of runtime. -RUN apt-get update && apt-get install -y --no-install-recommends python3=3.11.2-1+b1 make=4.3-4.1 g++=4:12.2.0-3 ca-certificates=20250419~deb12u1 openssl=3.0.20-1~deb12u2 && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y --no-install-recommends python3 make g++ ca-certificates openssl && rm -rf /var/lib/apt/lists/* COPY package.json package-lock.json ./ RUN npm ci COPY . . @@ -11,7 +11,7 @@ RUN npx --no-install prisma generate FROM dependencies AS development # Nest watch uses ps to stop the previous process tree before restarting. -RUN apt-get update && apt-get install -y --no-install-recommends procps=2:4.0.2-3 && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y --no-install-recommends procps && rm -rf /var/lib/apt/lists/* RUN mkdir /data && chown node:node /data && chown -R node:node /app USER node ENV NODE_ENV=development DATABASE_URL=file:/data/wealthledger.db @@ -23,7 +23,7 @@ FROM dependencies AS build RUN npx --no-install nest build && npm prune --omit=dev --omit=optional FROM base AS production -RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates=20250419~deb12u1 openssl=3.0.20-1~deb12u2 && rm -rf /var/lib/apt/lists/* \ +RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates openssl && rm -rf /var/lib/apt/lists/* \ && mkdir /data && chown node:node /data ARG VERSION ARG REVISION -- 2.54.0