-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (24 loc) · 947 Bytes
/
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
FROM debian:latest
ADD "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache
WORKDIR /app/root
RUN apt-get update && apt-get install git -y && \
git clone https://github.com/bbzblit/stundenplan-api.git .
RUN apt-get update && apt-get install curl sudo -y \
&& curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash\
&& apt update && apt install -y libjsoncpp24 libjsoncpp-dev mariadb-client libmariadb-dev\
&& sudo apt install git gcc g++ cmake libjsoncpp-dev uuid-dev openssl libssl-dev zlib1g-dev -y \
&& cd /tmp \
&& git clone https://github.com/an-tao/drogon \
&& cd drogon \
&& git submodule update --init \
&& mkdir build \
&& cd build \
&& cmake .. \
&& make && sudo make install \
&& cd /app/root \
&& rm -rf build \
&& mkdir build \
&& cd build \
&& cmake .. \
&& make
ENTRYPOINT ["/app/root/build/stundenplan_api"]