25 lines
336 B
Docker
25 lines
336 B
Docker
FROM oven/bun AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN apt update
|
|
RUN apt install build-essential python3 -y
|
|
|
|
RUN bun i
|
|
RUN 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"]
|