refactor(Dockerfile): change base image from alpine to debian (bookworm) slim

Signed-off-by: Vojtěch Mareš <vojtech@mares.cz>
This commit is contained in:
Vojtěch Mareš 2025-09-08 14:00:06 +02:00
parent 2ee83a3965
commit 88bff88d89
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

@ -1,11 +1,18 @@
FROM node:22-alpine
FROM node:22-bookworm-slim
WORKDIR /app
ENV PNPM_HOME="/root/.local/share/pnpm"
ENV PATH="${PATH}:${PNPM_HOME}"
RUN apk add -U --no-cache ca-certificates
# RUN apk add -U --no-cache ca-certificates libc++
# RUN --mount=type=cache,target=/var/cache/apt \
# --mount=type=cache,target=/var/lib/apt \
# apt-get update && apt-get install -y ca-certificates
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/cache/apt/archives /var/lib/apt/lists/*
RUN npm install --global pnpm
RUN pnpm install --global --dangerously-allow-all-builds wrangler@latest