sentiment-fastapi-api / Dockerfile
Adedayo2000's picture
Create Dockerfile
0fe46e1 verified
Raw History Blame Contribute Delete
299 Bytes
FROM python:3.11.1
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
WORKDIR /home/user/app
COPY --chown=user requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY --chown=user . .
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]