Files
revanced-bots/bots/discord/Dockerfile
PalmDevs 96a6540434 build(Needs bump): revert building with bun explicitly
Building with only Bun causes compatibility issues, like Drizzle Kit not being to generate any schema for the database of the Discord bot.
2024-07-24 03:25:30 +07:00

19 lines
345 B
Docker

# This file should be triggered from the monorepo root
FROM oven/bun:latest AS base
FROM base AS build
WORKDIR /build
COPY . .
RUN bun install --frozen-lockfile
RUN cd bots/discord && bun run build
FROM base AS release
WORKDIR /app
COPY --from=build /build/bots/discord/dist /app
USER 1000:1000
ENTRYPOINT [ "bun", "run", "src/index.js" ]