Attempt to not dumb
This commit is contained in:
parent
7c90627601
commit
671cd13dbb
10
Dockerfile
10
Dockerfile
|
@ -1,15 +1,7 @@
|
|||
FROM oven/bun:1 AS base
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
FROM base AS install
|
||||
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
|
||||
COPY package.json bun.lockb prisma ./
|
||||
|
||||
ENV NODE_ENV=production
|
||||
RUN bun test
|
||||
|
|
Loading…
Reference in New Issue