exo-ml / Dockerfile
pacman2223's picture
Update Dockerfile
b259f3d verified
raw
history blame contribute delete
369 Bytes
#sike
FROM ubuntu:22.04
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
# install app dependencies
RUN apt-get update && apt-get install -y python3 python3-pip
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# install app
COPY . .
EXPOSE 7860
# final configuration
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]