File size: 535 Bytes
01e9350
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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"]