-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
67 lines (58 loc) · 1.47 KB
/
Dockerfile
File metadata and controls
67 lines (58 loc) · 1.47 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
# -------------------------------
# System dependencies
# -------------------------------
RUN apt update && \
apt install -y \
software-properties-common \
build-essential \
git \
python3-dev \
python3-pip \
python3-setuptools \
python3-wheel \
gettext \
postgresql \
libpq-dev \
graphviz \
&& apt clean \
&& rm -rf /var/lib/apt/lists/*
# Needed for some Python packages on Ubuntu 20
RUN pip3 install --upgrade pip && \
pip3 install "setuptools<66.0.0"
# -------------------------------
# Python dependencies
# -------------------------------
RUN pip3 install \
requests \
ujson \
django==4.2 \
pluggy \
py \
attrs \
six \
more-itertools \
ply \
pytest \
atomicwrites \
pycparser \
psycopg2-binary \
sympy \
pytz
# -------------------------------
# Create working directory
# -------------------------------
RUN git clone https://github.com/ispras/cv-visualizer.git /cvv
WORKDIR /cvv
RUN deploys/deployment.sh cvdb
# -------------------------------
# Expose default CVV port
# -------------------------------
EXPOSE 8989
# -------------------------------
# Create an entrypoint
# -------------------------------
COPY deploys/entrypoint.sh /cvv/entrypoint.sh
RUN chmod +x /cvv/entrypoint.sh
ENTRYPOINT ["/cvv/entrypoint.sh"]