atlasbot/Dockerfile

20 lines
481 B
Docker
Raw Normal View History

2026-02-03 19:08:26 -03:00
FROM registry.bstein.dev/bstein/python:3.12-slim AS base
2026-01-28 11:46:52 -03:00
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
2026-02-03 19:08:26 -03:00
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
FROM base AS runtime
2026-01-28 11:46:52 -03:00
EXPOSE 8090
CMD ["python", "-m", "atlasbot.main"]