mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-28 02:26:10 +00:00
dockerfile: switch to alpine
This commit is contained in:
parent
ca665c5382
commit
7fbb7ee5e6
|
@ -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