Attempt to not dumb

This commit is contained in:
Hri7566 2024-10-28 22:20:25 -04:00
parent 7c90627601
commit 671cd13dbb
1 changed files with 1 additions and 9 deletions

View File

@ -1,15 +1,7 @@
FROM oven/bun:1 AS base FROM oven/bun:1 AS base
WORKDIR /usr/src/app WORKDIR /usr/src/app
FROM base AS install COPY package.json bun.lockb prisma ./
RUN mkdir -p /temp/prod
COPY package.json bun.lockb prisma /temp/prod/
RUN cd /temp/prod && bun install --frozen-lockfile --production
RUN bunx prisma generate
FROM base AS prerelease
COPY --from=install /temp/dev/node_modules node_modules
COPY --from=install /temp/dev/prisma prisma
ENV NODE_ENV=production ENV NODE_ENV=production
RUN bun test RUN bun test