forked from augmentedstartups/AS-One
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (25 loc) · 755 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM pytorch/pytorch:latest
# Set Time Zone to prevent issues for installing some apt packages
ENV TZ=Europe/Minsk
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# install apt packages
RUN apt-get update -y
RUN apt-get install git gcc \
g++ python3-opencv \
vim -y
RUN mkdir /app
WORKDIR /app
ADD asone asone
ADD sample_videos sample_videos
ADD main.py main.py
# ADD demo.py demo.py
ADD setup.py setup.py
ADD requirements.txt requirements.txt
RUN pip3 install Cython numpy
RUN pip3 install cython-bbox
ADD pypi_README.md pypi_README.md
RUN pip3 install torch torchvision --extra-index-url https://download.pytorch.org/whl/cu113
RUN pip3 install .
WORKDIR /workspace
# Entry Point
CMD /bin/bash