Compare commits
No commits in common. "0aa74b020d8b08fd0f5fa9df5cc3cdecb7c9de0d" and "a9258d9118121eb3527964e401a3bc3bda62becb" have entirely different histories.
0aa74b020d
...
a9258d9118
27
Dockerfile
27
Dockerfile
@ -1,27 +0,0 @@
|
|||||||
# Builder
|
|
||||||
FROM docker.io/library/node:slim AS builder
|
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
||||||
ca-certificates \
|
|
||||||
curl \
|
|
||||||
git \
|
|
||||||
gnupg \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
ENV PNPM_HOME="/pnpm"
|
|
||||||
ENV PATH="$PNPM_HOME:$PATH"
|
|
||||||
RUN corepack enable
|
|
||||||
WORKDIR /builder
|
|
||||||
|
|
||||||
COPY package.json /builder/package.json
|
|
||||||
COPY pnpm-lock.yaml /builder/pnpm-lock.yaml
|
|
||||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
|
|
||||||
|
|
||||||
COPY . /builder
|
|
||||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm run build
|
|
||||||
|
|
||||||
# Main
|
|
||||||
FROM docker.io/library/node:slim
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
COPY --from=builder /builder/dist /app
|
|
Reference in New Issue
Block a user