runabot/Dockerfile
tmddn3070 6693186d40 FEAT: Inital commit
This Commit Contained Rebrand Patches
2024-03-17 09:42:36 +09:00

28 lines
723 B
Docker

FROM python:3.12.2-slim-bookworm
ENV PYTHONFAULTHANDLER=1 \
PYTHONUNBUFFERED=1 \
PYTHONHASHSEED=random \
PIP_NO_CACHE_DIR=off \
PIP_DISABLE_PIP_VERSION_CHECK=on \
PIP_DEFAULT_TIMEOUT=100 \
POETRY_NO_INTERACTION=1 \
POETRY_VIRTUALENVS_CREATE=false \
POETRY_CACHE_DIR='/var/cache/pypoetry' \
POETRY_HOME='/usr/local' \
POETRY_VERSION=1.7.1
RUN apt-get update && apt-get install -y curl libgl1-mesa-glx libglib2.0-0 libsm6 libxrender1 libxext6
RUN curl -sSL https://install.python-poetry.org | python3 -
RUN ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
WORKDIR /app
COPY poetry.lock pyproject.toml /app/
RUN poetry install --no-interaction --no-ansi
COPY . /app
CMD ["python", "-m", "RUNA"]