FROM python:3.12-slim

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt -i https://mirrors.ustc.edu.cn/pypi/web/simple

COPY main.py .
COPY config.py .
COPY SQLAlchemy.py .
COPY auth.py .
COPY .env .

EXPOSE 7022

CMD ["python3", "main.py"]