diff --git a/apps/api/Dockerfile b/apps/api/Dockerfile index 5ce75bd..64512a2 100644 --- a/apps/api/Dockerfile +++ b/apps/api/Dockerfile @@ -3,17 +3,16 @@ 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 -COPY . /app -RUN corepack prepare pnpm@latest --activate && pnpm install --prod --frozen-lockfile +RUN pnpm install --prod --frozen-lockfile FROM base AS build COPY /cache /pnpm/store -COPY . /app -RUN corepack prepare pnpm@latest --activate && pnpm install --frozen-lockfile +RUN pnpm install --frozen-lockfile RUN pnpm run build # Install packages needed for deployment