test_model / Dockerfile
noisebop's picture
Create Dockerfile
53448b9 verified
raw
history blame contribute delete
343 Bytes
# Use official Python image
FROM python:3.9
# Set working directory
WORKDIR /app
# Copy all files
COPY . /app
# Install dependencies
RUN pip install --no-cache-dir fastapi uvicorn huggingface_hub lightgbm pydantic
# Expose FastAPI's default port
EXPOSE 7860
# Run FastAPI
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]