初始化
This commit is contained in:
10
backend/Dockerfile
Normal file
10
backend/Dockerfile
Normal file
@@ -0,0 +1,10 @@
|
||||
FROM python:3.12-slim
|
||||
WORKDIR /app
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com -r requirements.txt
|
||||
COPY app.py config.py models.py logger.py init_db.py file_service.py ./
|
||||
COPY routes/ ./routes/
|
||||
COPY middleware/ ./middleware/
|
||||
RUN mkdir -p /data/mokee/mokeetext/logs && mkdir -p static
|
||||
EXPOSE 4006
|
||||
CMD sh -c "python init_db.py && uvicorn app:app --host 0.0.0.0 --port 4006"
|
||||
Reference in New Issue
Block a user