vicky4s4s's picture
Upload 76 files
01e9350 verified
FROM python:3.11-slim
WORKDIR /app
# Copy requirements.txt and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the entire project
COPY . .
# Ensure the songs_data directory exists and has write permissions
RUN mkdir -p songs_data && chmod -R 755 songs_data
# Set environment variable for unbuffered output
ENV PYTHONUNBUFFERED=1
# Expose port
EXPOSE 5003
# Command to run the app
CMD ["uvicorn", "main_app:app", "--host", "0.0.0.0", "--port", "5003"]