fix: use correct env vars

This commit is contained in:
2025-01-10 14:00:56 +01:00
parent ca8b53c08e
commit dc8d2a0836
6 changed files with 39 additions and 20 deletions

View File

@@ -1,22 +1,24 @@
FROM node:18 AS build
FROM oven/bun AS builder
WORKDIR /app
COPY package.json bun.lockb ./
COPY package*.json .
RUN npm ci
RUN bun install
COPY . .
RUN npm run build
RUN npm prune --production
FROM node:18 AS run
RUN bun run build
RUN bunx drizzle-kit push
FROM oven/bun
WORKDIR /app
COPY --from=builder /app ./
EXPOSE 90
ENV NODE_ENV=production
WORKDIR /app
COPY --from=build /app/build ./build
COPY --from=build /app/package.json ./package.json
COPY --from=build /app/node_modules ./node_modules
RUN ulimit -c unlimited
ENTRYPOINT ["node", "build"]
CMD ["bun", "run", "preview", "--host", "--port=80"]