0

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

This commit is contained in:
Nikolai X. Shadeuxs 2024-06-19 03:38:51 -04:00
parent 81a95865e7
commit a1a003ff03

View File

@ -3,16 +3,17 @@ ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
LABEL fly_launch_runtime="Node.js"
RUN corepack enable
COPY . /app
WORKDIR /app
FROM base AS prod-deps
COPY /cache /pnpm/store
RUN pnpm install --prod --frozen-lockfile
COPY . /app
RUN corepack prepare pnpm@latest --activate && pnpm install --prod --frozen-lockfile
FROM base AS build
COPY /cache /pnpm/store
RUN pnpm install --frozen-lockfile
COPY . /app
RUN corepack prepare pnpm@latest --activate && pnpm install --frozen-lockfile
RUN pnpm run build
# Install packages needed for deployment