SkinZen / Dockerfile
jatin-tec
minor
d886ce4
raw
history blame
618 Bytes
FROM python:3.10.6
WORKDIR /code
ADD requirements.txt /code/requirements.txt
ADD app.py index.py model.py get_patches.py /code/
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y software-properties-common
RUN apt-get install -y build-essential cmake pkg-config \
&& apt-get install -y libx11-dev libatlas-base-dev \
&& apt-get install -y libgtk-3-dev libboost-python-dev
RUN pip install --timeout=100000 -r requirements.txt
ENV MPLCONFIGDIR=/usr/src/app/.config/matplotlib
RUN mkdir -p /usr/src/app/.config/matplotlib
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]