tm / Dockerfile
Guru-25's picture
Upload 5 files
05b920a verified
raw
history blame contribute delete
398 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY main.py .
COPY songs.json .
COPY song_embeddings_e5_final.npy .
# Expose port
EXPOSE 7860
# Set environment variable
ENV PYTHONUNBUFFERED=1
# Run the application
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]