22 lines
606 B
Docker
22 lines
606 B
Docker
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 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
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|