wtf it works??

This commit is contained in:
Jesse Wierzbinski 2023-12-08 14:25:03 -10:00
parent caac5027f2
commit de1e79ee6d
No known key found for this signature in database

View file

@ -10,18 +10,12 @@ COPY --from=node:18-alpine /usr/local/bin/node /usr/local/bin/node
# install dependencies into temp directory
# this will cache them and speed up future builds
FROM base AS install
RUN mkdir -p /temp/dev
COPY package.json bun.lockb /temp/dev/
RUN cd /temp/dev && bun install --frozen-lockfile
# install with --production (exclude devDependencies)
RUN mkdir -p /temp/prod
COPY . /temp/prod/
RUN cd /temp/prod && bun install --frozen-lockfile --production.
# Generate Prisma
RUN cd /temp/prod && bunx prisma generate
# Build Vite in pages
RUN cd /temp/prod && bunx --bun vite build pages