| 123456789101112131415161718192021222324252627 |
- # ---------- BUILD STAGE ----------
- FROM python:3.14-alpine AS builder
- RUN apk add --no-cache build-base mariadb-connector-c-dev
- WORKDIR /build
- COPY requirements.txt .
- RUN pip install --prefix=/install -r requirements.txt
- # ---------- RUNTIME STAGE ----------
- FROM python:3.14-alpine
- RUN apk add mariadb-connector-c
- COPY --from=builder /install /usr/local
- WORKDIR /opt/MyAnimeBot
- COPY . .
- RUN chown -R 0:0 /opt/MyAnimeBot && chmod -R g+rw /opt/MyAnimeBot
- EXPOSE 15200
- CMD ["python", "myanimebot.py"]
|