-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
58 lines (47 loc) · 1.6 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
47
48
49
50
51
52
53
54
55
56
57
58
FROM ubuntu:18.04
# Update and add universe repository
RUN apt-get update && apt-get install -y \
software-properties-common && \
add-apt-repository -y universe
# Set timezone to Eastern Timezone
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata && \
ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime && \
dpkg-reconfigure --frontend noninteractive tzdata
# Install dependencies
RUN apt-get update && apt-get install -y \
aptitude openjdk-8-jre python3 sqlite3 wget zip unzip \
python3-pip tcl lftp build-essential libssl-dev nano \
git gpg libreadline-dev libncurses-dev
# Install latest nodejs/npm
RUN pip3 install nodeenv && \
nodeenv /usr/local --force --prebuilt
# Install angular cli
RUN npm install -g @angular/cli
# Install a simple file server for testing
RUN npm install -g http-server
# Install python requirements
RUN pip3 install mypy geocoder xlrd
# Build GraphViz
RUN mkdir -p /opt/graphviz && \
cd /opt/graphviz && \
wget https://graphviz.gitlab.io/pub/graphviz/stable/SOURCES/graphviz.tar.gz && \
tar zxf graphviz.tar.gz && \
cd graphviz-* && \
./configure && \
make && \
make install
# Build SQLCipher
RUN mkdir -p /opt/sqlcipher && \
cd /opt/sqlcipher && \
chmod u+x /opt/sqlcipher && \
wget https://github.com/sqlcipher/sqlcipher/archive/v4.1.0.zip && \
unzip v4.1.0.zip && \
cd sqlcipher-4.1.0 && \
./configure --enable-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC" LDFLAGS="-lcrypto" --enable-readline && \
make && \
make install
# Clean up extra files
RUN apt-get -y autoremove --purge && \
apt-get -y clean && \
rm -rf /opt
CMD "/bin/bash"