note/api/Dockerfile
2026-04-23 20:42:16 +08:00

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 7022
CMD ["python3", "main.py"]