From 5e42784d6dc12739fc3437b35ca65e7c1b463f59 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Thu, 7 Dec 2023 07:42:11 -1000 Subject: [PATCH] Update lockfile and Dockerfile --- Dockerfile | 5 ++++- bun.lockb | Bin 386144 -> 386144 bytes 2 files changed, 4 insertions(+), 1 deletion(-) 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 cc2d4ad118a6d9de796f321c309f144bb87840f8..f1672c6e911c326075f9482449554846d560d6bc 100755 GIT binary patch delta 33 pcmaEGLj1uA@rD-07N#xC>fhNJfhO!7{H)i?>qB$z3(hWZvoPm3zh%?