pneumonia-detector / Dockerfile
ayushirathour's picture
Update Dockerfile
f76ab82 verified
raw
history blame contribute delete
349 Bytes
FROM python:3.10-slim
WORKDIR /app
COPY requirements.txt ./
RUN apt-get update && \
apt-get install -y gcc g++ && \
pip install --upgrade pip && \
pip install -r requirements.txt
COPY . ./
EXPOSE 7860
RUN useradd -m appuser
RUN chown -R appuser /app
USER appuser
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]