dockerfile: switch to alpine

This commit is contained in:
jj 2024-11-02 16:23:31 +00:00
parent ca665c5382
commit 7fbb7ee5e6
No known key found for this signature in database

View file

@ -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