File size: 598 Bytes
750fc00 d965e49 750fc00 d965e49 750fc00 d965e49 750fc00 d965e49 750fc00 d965e49 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /code
RUN apt-get update && apt-get install -y python3 python3-pip cmake python3-pybind11 libeigen3-dev python3-opencv \
libopencv-dev libboost-all-dev git libglfw3-dev libosmesa6-dev libgl1-mesa-dev wget mesa-utils vim \
&& rm -rf /var/lib/apt/lists/*
RUN pip3 install --no-cache-dir torch==2.1.2+cpu torchvision==0.16.2+cpu torchaudio==2.1.2+cpu --index-url https://download.pytorch.org/whl/cpu
COPY . .
RUN pip3 install --no-cache-dir -r requirements.txt
RUN cd esim_py && pip3 install .
CMD ["python3", "app.py"]
|