spectrum-api-simple / Dockerfile
UserArkham's picture
Update Dockerfile
843d0a0 verified
Raw History Blame Contribute Delete
507 Bytes
FROM python:3.9-slim
WORKDIR /code
# Install system dependencies
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
# Copy requirements
COPY requirements_simple.txt requirements.txt
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY simple_api.py api.py
COPY allsides_data.csv .
COPY blacklist.csv .
# Expose port
EXPOSE 7860
# Start the API server
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]