-
Notifications
You must be signed in to change notification settings - Fork 38
/
Dockerfile
49 lines (35 loc) · 1.17 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
FROM ubuntu:18.04
ENV LIBINDY_VERSION 1.15.0-bionic
RUN apt-get update && \
apt-get install -y \
apt-transport-https \
build-essential \
curl \
iproute2 \
jq \
software-properties-common \
unzip \
vim
# Setup apt for Sovrin repository
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 68DB5E88 && \
add-apt-repository "deb https://repo.sovrin.org/sdk/deb bionic stable"
# Install libindy library from Sovrin repo
RUN apt-get update && apt-get install -y \
libindy=${LIBINDY_VERSION}
# Install Ngrok
RUN curl -O -s https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip && \
unzip ngrok-stable-linux-amd64.zip && \
cp ngrok /usr/local/bin/.
# Install NodeJS
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - && \
apt-get install -y nodejs
WORKDIR /ssi-auth-app
COPY app.js package.json package-lock.json ./
COPY public ./public
COPY views ./views
# Install npm packages
RUN npm install 2>/dev/null
EXPOSE 3000
COPY docker_entrypoint.sh /docker_scripts/
# Start Ngrok tunnel for webhook URL in docker entrypoint
ENTRYPOINT ["/docker_scripts/docker_entrypoint.sh"]