commandr-api-local / Dockerfile
muryshev's picture
Update Dockerfile
e5c007e verified
raw
history blame
371 Bytes
FROM python:3.10-buster
RUN useradd -m -u 1000 user
USER user
COPY --chown=user . /app/commandr-api-local
WORKDIR /app/commandr-api-local
# COPY . .
RUN pip3 install --upgrade pip
RUN pip3 install -r requirements.txt
RUN pip install fastapi uvicorn
# CMD ["python", "app.py"]
CMD ["python", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]