atlasbot/Dockerfile
2026-04-21 14:48:33 -03:00

22 lines
542 B
Docker

FROM registry.bstein.dev/bstein/python:3.12-slim AS base
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt /app/requirements.txt
COPY requirements-dev.txt /app/requirements-dev.txt
COPY pyproject.toml /app/pyproject.toml
RUN pip install --no-cache-dir -r /app/requirements.txt -r /app/requirements-dev.txt
COPY atlasbot /app/atlasbot
FROM base AS test
COPY testing /app/testing
COPY tests /app/tests
COPY scripts /app/scripts
FROM base AS runtime
EXPOSE 8090
CMD ["python", "-m", "atlasbot.main"]