-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·41 lines (35 loc) · 1.4 KB
/
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
37
38
39
40
41
FROM ubuntu:18.04
WORKDIR /opt
COPY . /opt
USER root
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get -o Acquire::Check-Valid-Until=false -o Acquire::Check-Date=false update -y
RUN apt-get update
RUN apt-get install -y wget \
build-essential \
software-properties-common \
apt-utils \
libgl1-mesa-glx \
ffmpeg \
libsm6 \
libxext6 \
libffi-dev \
libbz2-dev \
zlib1g-dev \
libreadline-gplv2-dev \
libncursesw5-dev \
libssl-dev \
libsqlite3-dev \
tk-dev \
libgdbm-dev \
libc6-dev \
liblzma-dev
RUN wget https://www.python.org/ftp/python/3.9.10/Python-3.9.10.tgz
RUN tar -xzf Python-3.9.10.tgz
RUN cd Python-3.9.10/ && ./configure --with-ensurepip=install && make && make install
RUN apt-get update
RUN pip3 install -r /opt/requirements.txt
RUN /usr/local/bin/python3.9 -m pip install labelbox[data] --upgrade
RUN apt-get install -y locales && locale-gen en_US.UTF-8
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
ENTRYPOINT [ "/usr/local/bin/python3.9", "/opt/detecto_labelbox_object_detection.py" ]