0

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

This commit is contained in:
Nikolai X. Shadeuxs 2024-06-19 03:40:40 -04:00
parent a1a003ff03
commit c0de64e387

View File

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