Backend-Streamer / Dockerfile
kacapower's picture
Create Dockerfile
bde7cde verified
raw
history blame contribute delete
443 Bytes
FROM python:3.9
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Create an uploads directory to store the music files
RUN mkdir -p /code/uploads
# Grant permissions to the Hugging Face user
RUN chmod 777 /code/uploads
COPY . .
# Run the FastAPI app on port 7860 (Hugging Face's default port)
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]