From 7fbb7ee5e64e7301b25fc1260ff0a836d9971871 Mon Sep 17 00:00:00 2001 From: jj Date: Sat, 2 Nov 2024 16:23:31 +0000 Subject: [PATCH] dockerfile: switch to alpine --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7926dea6..1af6273a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:23-bookworm-slim AS base +FROM node:23-alpine AS base ENV PNPM_HOME="/pnpm" ENV PATH="$PNPM_HOME:$PATH" @@ -7,8 +7,7 @@ WORKDIR /app COPY . /app RUN corepack enable -RUN apt-get update && \ - apt-get install -y python3 build-essential +RUN apk add --no-cache python3 alpine-sdk RUN --mount=type=cache,id=pnpm,target=/pnpm/store \ pnpm install --prod --frozen-lockfile