Files
FiDA_Python/Dockerfile
2026-02-05 10:15:03 +08:00

24 lines
581 B
Docker

FROM python:3.12-slim
# Install uv.
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
# Copy the application into the container.
COPY . /app
# Install the application dependencies.
WORKDIR /app
# 更新索引并安装替代包
RUN apt-get update && apt-get install -y vim
RUN uv sync --frozen --no-cache
# Run the application.
CMD ["tail", "-f", "/dev/null"]
#CMD ["/app/.venv/bin/gunicorn", "app.main:app", \
# "-w", "4", \
# "-k", "uvicorn.workers.UvicornWorker", \
# "--bind", "0.0.0.0:80", \
# "--access-logfile", "-", \
# "--error-logfile", "-"]