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:
parent
2ee83a3965
commit
88bff88d89
1 changed files with 9 additions and 2 deletions
11
Dockerfile
11
Dockerfile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue