derma-connect / Dockerfile
vbharath's picture
Deploy DermaConnect prototype
1b0b1c9 verified
Raw
History Blame Contribute Delete
505 Bytes
FROM python:3.12-slim
WORKDIR /app
# System deps for Pillow (JPEG/PNG) kept minimal.
RUN apt-get update && apt-get install -y --no-install-recommends \
libjpeg62-turbo zlib1g \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Most hosts (Render, Fly, HF Spaces, Cloud Run) inject $PORT. Default to 8000.
ENV PORT=8000
EXPOSE 8000
WORKDIR /app/backend
CMD ["sh", "-c", "uvicorn app:app --host 0.0.0.0 --port ${PORT:-8000}"]