aboutsummaryrefslogtreecommitdiff
path: root/nlnet/task1/Dockerfile
blob: 208ea658c7102cf6bb1ca215f5d1995540b554e9 (plain)
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
FROM debian:stable

RUN apt-get update
RUN apt-get install -y openjdk-17-jre git python3-pip curl jq
RUN pip3 install click requests

# Installation
RUN git clone git://git.taler.net/libeufin
WORKDIR /libeufin
RUN git fetch && git checkout 981392149cbfd6a454182e2be1d296629a9879f6
RUN ./bootstrap
RUN ./configure --prefix=/usr/local
RUN make install

# Reverse proxy
RUN apt-get install -y nginx

# Importing the UI.
RUN git clone -b prebuilt git://git.taler.net/wallet-core
RUN cp /libeufin/debian/etc/nginx/sites-available/libeufin-sandbox /etc/nginx/sites-enabled/
RUN mkdir -p /usr/share/libeufin/demobank-ui/
RUN mkdir -p /etc/libeufin/
RUN cp /libeufin/debian/usr/share/libeufin/demobank-ui/demobank-ui-settings.js /etc/libeufin/
RUN cp wallet-core/demobank/* /usr/share/libeufin/demobank-ui/

# Default place for the database.
RUN mkdir /libeufin-data

COPY start.sh /
ENTRYPOINT /start.sh