Echo-ai commited on
Create Dockerfile
Browse files12345678910111213141516171819202122# Use an official Python runtime as a parent imageFROM python:3.9-slim
# Set the working directory in the containerWORKDIR /app
# Install necessary packagesRUN pip install --no-cache-dir flask requests duckduckgo_search openai
# Download the script from the private Hugging Face datasetRUN apt-get update && apt-get install -y wgetRUN wget https://huggingface.co/datasets/gefiwek187/free-api/resolve/main/app.py -O /app/api.pyRUN pip install duckduckgo_search
# Make port 7860 available to the world outside this containerEXPOSE 7860
# Define environment variable for FlaskENV FLASK_APP=api.py
# Run the Flask application on port 7860CMD ["flask", "run", "--host=0.0.0.0", "--port=7860"]DockerfileAdded+22