20 lines
481 B
Docker
20 lines
481 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
|
|
|
|
FROM base AS runtime
|
|
EXPOSE 8090
|
|
CMD ["python", "-m", "atlasbot.main"]
|