js-engineer-chatbot / Dockerfile
abdullah9873's picture
Upload Dockerfile with huggingface_hub
020cdb9 verified
Raw History Blame Contribute Delete
570 Bytes
FROM python:3.13-slim
WORKDIR /app
# Install uv
RUN pip install uv
# Copy only project definition first
COPY pyproject.toml .
# Create virtual environment and install dependencies
# We do NOT use --frozen to ensure we resolve correctly for Linux
# We install the project dependencies
RUN uv venv .venv
ENV PATH="/app/.venv/bin:$PATH"
RUN uv pip install -r pyproject.toml
# Copy application code
COPY . .
# Expose port 7860
EXPOSE 7860
# Run using the python from the venv explicitly
CMD ["/app/.venv/bin/uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]