Spaces:
Paused
Paused
Create Dockerfile
Browse files12345678910111213141516171819202122# Use an official Python runtime as a parent imageFROM python:3.10-slim-buster
# Set the working directory in the container to /appWORKDIR /app
# Install gitRUN apt-get update && apt-get install -y git
# Clone the repositoryRUN --mount=type=secret,id=GITHUB_TOKEN,mode=0444,required=true \ git clone https://$(cat /run/secrets/GITHUB_TOKEN)@github.com/UrloMythus/HF_Requests.git /app || true# Copy the local config.json file to the container
# Install any needed packages specified in requirements.txtRUN pip install --no-cache-dir -r requirements.txt
# Expose the port, for now default is 8080 cause it's the only one really allowed by HuggingFaceEXPOSE 8080
# Run run.py when the container launchesCMD ["python", "main.py"]DockerfileAdded+22