GitDorker / Dockerfile
Jack698's picture
Upload folder using huggingface_hub
8d0d683 verified
Raw
History Blame Contribute Delete
796 Bytes
# Use an official Python runtime as a parent image
FROM python:3.9-slim
# Set the working directory in the container
WORKDIR /app
# Copy the current directory contents into the container at /app
# This includes GitDorker.py, app.py, Dorks/, requirements.txt, etc.
COPY . .
# Install any needed packages specified in requirements.txt
# The --no-cache-dir option is used to reduce the image size
RUN pip install --no-cache-dir -r requirements.txt
# Make port 7860 available to the world outside this container
# This is the default port Hugging Face Spaces uses
EXPOSE 7860
# Define environment variable
ENV NAME GitDorker
# Run app.py when the container launches
# Uvicorn is the server that will run our FastAPI application
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]