File size: 696 Bytes
750fc00 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /code
COPY . .
RUN apt-get update && apt-get install -y python3 python3-pip cmake python3-pybind11 python3-opencv libopencv-dev libboost-all-dev git libglfw3-dev libgles2-mesa-dev
# RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
RUN pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
RUN pip install --no-cache-dir --upgrade -r requirements.txt
RUN cd esim_py && pip install .
EXPOSE 8501
# CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
# streamlit run app.py
CMD ["streamlit", "run", "app.py", "0.0.0.0", "--port", "7860"]
|