mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-14 12:19:59 +00:00
dockerfile: switch to alpine
This commit is contained in:
parent
ca665c5382
commit
7fbb7ee5e6
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue