16 lines
280 B
Docker
16 lines
280 B
Docker
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 7023
|
|
|
|
CMD ["python3", "main.py"] |