ferdinland-site/Dockerfile
2024-12-23 20:24:18 -06:00

25 lines
329 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 ./drizzle ./drizzle
COPY /drizzle.config.ts .
COPY /local.db .
EXPOSE 3000
CMD ["bun", "run", "start"]