diff --git a/Dockerfile b/Dockerfile index 33fc7797..ada6e762 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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