-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
66 lines (50 loc) · 1.29 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
59
60
61
62
63
64
65
66
FROM ubuntu:16.04
ARG uid=1000
ARG indy_stream=stable
ENV LC_ALL="C.UTF-8"
ENV LANG="C.UTF-8"
ENV SHELL="/bin/bash"
# Install environment
RUN apt-get update -y && apt-get install -y \
git \
wget \
python3.5 \
python3-pip \
python-setuptools \
python3-nacl \
apt-transport-https \
ca-certificates \
build-essential \
pkg-config \
cmake \
libssl-dev \
libsqlite3-dev \
libsodium-dev \
curl
# Add indy user
RUN useradd -ms /bin/bash -u $uid indy
# Install LibIndy
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 68DB5E88
RUN echo "deb https://repo.sovrin.org/sdk/deb xenial $indy_stream" >> /etc/apt/sources.list
# Fix LibIndy version to 1.5.0
RUN echo "Package: libindy" >> /etc/apt/preferences
RUN echo "Pin: version 1.6.1" >> /etc/apt/preferences
RUN echo "Pin-Priority: 1000" >> /etc/apt/preferences
RUN apt-get update && apt-get install -y libindy
USER root
# Install nodejs
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN apt-get install -y \
nodejs \
build-essential
ENV HOME=~
WORKDIR $HOME
RUN mkdir nodejs
WORKDIR nodejs
ENV LD_LIBRARY_PATH=$HOME/.local/lib:/usr/local/lib:/usr/lib
# Copy rest of the app
COPY . .
# RUN npm install --save indy-sdk
RUN npm install
CMD [ "npm", "start" ]
EXPOSE 8000