chore: Fix Docker build

This commit is contained in:
Jesse Wierzbinski 2023-12-08 13:19:57 -10:00
parent ecf1139081
commit caac5027f2
No known key found for this signature in database

View file

@ -20,14 +20,13 @@ COPY . /temp/prod/
RUN cd /temp/prod && bun install --frozen-lockfile --production. RUN cd /temp/prod && bun install --frozen-lockfile --production.
# Generate Prisma # Generate Prisma
RUN bunx prisma generate RUN cd /temp/prod && bunx prisma generate
# Build Vite in pages # Build Vite in pages
WORKDIR /temp/prod RUN cd /temp/prod && bunx --bun vite build pages
RUN bunx --bun vite build pages
# Build the project # Build the project
RUN bun run build.ts RUN cd /temp/prod && bun run build.ts
# copy production dependencies and source code into final image # copy production dependencies and source code into final image
FROM base AS release FROM base AS release