Create Dockerfile
Browse files1234567891011121314151617181920212223# Use an official Python runtime as a parent imageFROM python:3.9
# Set the working directory in the containerWORKDIR /app
# Copy the current directory contents into the container at /appCOPY . /app
# Install any needed packages specified in requirements.txtRUN pip install --no-cache-dir -r requirements.txt
# Set environment variables, including TRANSFORMERS_CACHEENV TRANSFORMERS_CACHE /app/cache
# Set cache directory permissionsRUN mkdir -p /app/cache && chmod 777 /app/cache
# Make port 7860 available to the world outside this containerEXPOSE 7860
# Define the command to run your applicationCMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]DockerfileAdded+23