diff --git a/Dockerfile b/Dockerfile index edb38027..ca6a667a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,6 +19,9 @@ RUN mkdir -p /temp/prod COPY package.json bun.lockb /temp/prod/ RUN cd /temp/prod && bun install --frozen-lockfile --production. +# Build Vite in pages +RUN bun vite:build --mode production + # copy production dependencies and source code into final image FROM base AS release @@ -41,4 +44,4 @@ RUN bunx prisma generate WORKDIR /app ENV NODE_ENV=production # Run migrations and start the server -ENTRYPOINT [ "bun", "migrate", "&&", "bun", "run", "index.ts" ] +ENTRYPOINT [ "bun", "migrate", "&&", "bun start" ] diff --git a/bun.lockb b/bun.lockb index cc2d4ad1..f1672c6e 100755 Binary files a/bun.lockb and b/bun.lockb differ