fastapi-deepseek / Dockerfile
Elaineyy's picture
Create Dockerfile
2e525ca verified
raw
history blame
470 Bytes
# Use Python as base image
FROM python:3.10
# Set working directory
WORKDIR /app
# Copy project files
COPY . /app
# Install FastAPI dependencies
RUN pip install --no-cache-dir fastapi uvicorn
# Install Ollama
RUN curl -fsSL https://ollama.com/install.sh | sh
# Pull DeepSeek-Coder-V2 Model
RUN ollama pull deepseek-coder-v2
# Expose port 7860 for FastAPI
EXPOSE 7860
# Start the FastAPI server
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]