-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (21 loc) · 1000 Bytes
/
Dockerfile
File metadata and controls
30 lines (21 loc) · 1000 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM node:25-bullseye
LABEL org.opencontainers.image.authors="Yuito Akatsuki <yuito@yuito-it.jp>"
LABEL org.opencontainers.image.url="https://github.com/UniPro-tech/UniBot"
LABEL org.opencontainers.image.source="https://github.com/UniPro-tech/UniBot"
LABEL org.opencontainers.image.licenses="MIT"
LABEL org.opencontainers.image.title="UniBot"
LABEL org.opencontainers.image.description="A multifunctional Discord bot for community management, entertainment, and productivity."
LABEL org.opencontainers.image.vendor="All-Japan Digital Creative Club UniProject <info@uniproject.jp>"
WORKDIR /app
RUN apt-get update && apt-get install -y \
curl git file unzip \
python3 make g++ ffmpeg \
&& rm -rf /var/lib/apt/lists/*
# bun だけ入れる(Nodeは20のまま)
RUN curl -fsSL https://bun.sh/install | bash
ENV PATH="/root/.bun/bin:$PATH"
COPY package*.json ./
COPY bun.lock ./
RUN bun install --trust-all
COPY . .
CMD ["sh", "-c", "bunx prisma db push && bun run src/index.ts"]