SYNC / Dockerfile
triflix's picture
Rename Dockerfile1 to Dockerfile
b7c54bc verified
raw
history blame contribute delete
506 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install system deps needed by Python packages (minimal)
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential ca-certificates && rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy app
COPY . .
# Ensure temp dir exists and is writable
RUN mkdir -p /tmp/music_sync && chmod 777 /tmp/music_sync
EXPOSE 7860
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]