test / dockerfile
DP27's picture
Upload 4 files
860a086 verified
FROM python:3.9-slim
WORKDIR /app
COPY requirements.txt .
# Install system dependencies for soundfile
RUN apt-get update && \
apt-get install -y --no-install-recommends \
gcc \
libc6-dev \
libsndfile1 \
&& pip install --no-cache-dir -r requirements.txt \
&& apt-get remove -y gcc libc6-dev \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
COPY . .
# Make sure to expose the port your app uses
EXPOSE 8000
# Command to run the app
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]