0

Update apps/api/Dockerfile
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 26s

This commit is contained in:
Nikolai X. Shadeuxs 2024-06-19 04:23:35 -04:00
parent 680031214c
commit c8edef5853

View File

@ -5,12 +5,13 @@ LABEL fly_launch_runtime="Node.js"
RUN corepack enable
WORKDIR /app
FROM base AS prod-deps
# Copy only the package files first
COPY package.json pnpm-lock.yaml ./
FROM base AS prod-deps
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile
FROM base AS build
COPY package.json pnpm-lock.yaml ./
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
COPY . .
RUN pnpm run build