adjust actions + docker containers for prisma

This commit is contained in:
Rdeisenroth 2025-11-08 13:30:57 +01:00
parent 64e33e4e79
commit bc9099a8bb
No known key found for this signature in database
GPG key ID: 197008FA42DE7127
3 changed files with 6 additions and 3 deletions

View file

@ -25,12 +25,12 @@ RUN unzip -j bun-linux-*.zip -d /usr/local/bin && \
FROM base AS install
RUN mkdir -p /temp/dev
COPY package.json bun.lock /temp/dev/
RUN cd /temp/dev && bun install --frozen-lockfile
RUN cd /temp/dev && bun install --frozen-lockfile && bun prisma generate
# install with --production (exclude devDependencies)
RUN mkdir -p /temp/prod
COPY package.json bun.lock /temp/prod/
RUN cd /temp/prod && bun install --frozen-lockfile --production
RUN cd /temp/prod && bun install --frozen-lockfile --production && bun prisma generate
FROM base AS prerelease
WORKDIR /app