Browse Source

fix: update base image in Dockerfile and remove unnecessary build dependencies

Yuki Takei 6 days ago
parent
commit
83faf7ab43
1 changed files with 2 additions and 7 deletions
  1. 2 7
      apps/app/docker/Dockerfile

+ 2 - 7
apps/app/docker/Dockerfile

@@ -5,20 +5,15 @@ ARG OPT_DIR="/opt"
 ARG PNPM_HOME="/root/.local/share/pnpm"
 
 ##
-## base — DHI dev image with pnpm + turbo
+## base — official Node.js image with pnpm + turbo
 ##
-FROM dhi.io/node:24-debian13-dev AS base
+FROM node:24-bookworm AS base
 
 ARG OPT_DIR
 ARG PNPM_HOME
 
 WORKDIR $OPT_DIR
 
-# Install build dependencies
-RUN --mount=type=cache,target=/var/lib/apt,sharing=locked \
-    --mount=type=cache,target=/var/cache/apt,sharing=locked \
-  apt-get update && apt-get install -y --no-install-recommends ca-certificates gzip wget
-
 # Install pnpm (standalone script, no version hardcoding)
 RUN wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.shrc" SHELL=/bin/sh sh -
 ENV PNPM_HOME=$PNPM_HOME