atlasbot/Dockerfile

21 lines
507 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
RUN pip install --no-cache-dir -r /app/requirements.txt
COPY atlasbot /app/atlasbot
FROM base AS test
COPY requirements-dev.txt /app/requirements-dev.txt
RUN pip install --no-cache-dir -r /app/requirements-dev.txt
COPY tests /app/tests
COPY scripts /app/scripts
FROM base AS runtime
EXPOSE 8090
CMD ["python", "-m", "atlasbot.main"]