fastapi-deepseek / Dockerfile
Elaineyy's picture
Update Dockerfile
3e00208 verified
raw
history blame
395 Bytes
# Use Python as base image
FROM python:3.10
# Set working directory
WORKDIR /app
# Copy project files
COPY . /app
# Install dependencies
RUN pip install --no-cache-dir fastapi uvicorn torch torchvision torchaudio transformers sentencepiece accelerate
# Expose port 7860 for FastAPI
EXPOSE 7860
# Start the FastAPI server
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]