Files
revanced-bots/bots/discord/Dockerfile
2024-07-22 22:00:44 +07:00

18 lines
317 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 cd bots/discord && bun --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" ]