ferdinland-site/Dockerfile
2024-12-23 22:00:47 -06:00

25 lines
335 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 --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"]