ferdinland-site/Dockerfile

25 lines
358 B
Docker

FROM oven/bun AS builder
WORKDIR /app
COPY . .
RUN apt update
RUN apt install build-essential python3 -y
RUN bun i
RUN DATABASE_URL=local.db bun run build
RUN ls -a
FROM oven/bun
COPY --from=builder /app/build .
COPY --from=builder /app/drizzle .
COPY --from=builder /app/drizzle.config.ts .
COPY /local.db .
EXPOSE 3000
CMD ["bun", "run", "start"]