StaticDefender / Dockerfile
Yatharth999's picture
Upload 5 files
2f9adb5 verified
raw
history blame contribute delete
424 Bytes
# Lightweight Python image
FROM python:3.9-slim
# To Set the working directory
WORKDIR /app
# To Copy your files into the container
COPY . /app
# To Install the necessary libraries
RUN pip install --no-cache-dir -r requirements.txt
# To Open the port Hugging Face expects (7860)
EXPOSE 7860
# To Start the FastAPI server using Uvicorn
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]