forked from scalabel/scalabel
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
46 lines (34 loc) · 1 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
42
43
44
45
46
FROM ubuntu:20.04
EXPOSE 8686
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
curl \
build-essential \
autoconf \
libtool \
pkg-config \
gnupg-agent \
software-properties-common \
curl \
git \
libopenmpi-dev \
python3.9 \
python3.9-dev \
python3-pip \
python3-setuptools
# Latest redis source
RUN add-apt-repository ppa:chris-lea/redis-server
# nodejs 12
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash
RUN apt-get update && apt-get install -y --no-install-recommends \
nodejs redis-server
WORKDIR /opt/scalabel
RUN chmod -R a+w /opt/scalabel
COPY . .
RUN python3.9 -m pip install -U pip && \
python3.9 -m pip install -r scripts/requirements.txt
RUN python3.9 setup.py install
RUN npm install -g npm@latest && npm ci --max_old_space_size=8000
RUN ./node_modules/.bin/webpack --config webpack.config.js --mode=production; \
rm -f app/dist/tsconfig.tsbuildinfo