-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
40 lines (26 loc) · 1.22 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
FROM ubuntu:artful
RUN ln -snf /usr/share/zoneinfo/Europe/Vienna /etc/localtime && echo Europe/Vienna > /etc/timezone
RUN apt update \
&& apt install tzdata -y \
&& rm /var/lib/apt/lists/* /var/log/* -Rf
RUN apt update \
&& apt install libssl1.0.0 ca-certificates libqt5core5a libqt5gui5 libqt5network5 libqt5multimedia5 -y \
&& rm /var/lib/apt/lists/* /var/log/* -Rf
RUN apt update \
&& apt install git-core g++ make qt5-default qtmultimedia5-dev qttools5-dev qttools5-dev-tools -y \
&& rm /var/lib/apt/lists/* /var/log/* -Rf
ADD . /tmp/QtZeiterfassung
RUN mkdir -p /tmp/build_QtZeiterfassung \
&& qmake /tmp/QtZeiterfassung -o /tmp/build_QtZeiterfassung/Makefile -config release \
&& make -C /tmp/build_QtZeiterfassung -j8 \
&& make -C /tmp/build_QtZeiterfassung install
FROM ubuntu:artful
RUN ln -snf /usr/share/zoneinfo/Europe/Vienna /etc/localtime && echo Europe/Vienna > /etc/timezone
RUN apt update \
&& apt install tzdata -y \
&& rm /var/lib/apt/lists/* /var/log/* -Rf
RUN apt update \
&& apt install libssl1.0.0 ca-certificates libqt5core5a libqt5gui5 libqt5network5 libqt5multimedia5 -y \
&& rm /var/lib/apt/lists/* /var/log/* -Rf
COPY --from=0 /tmp/build_QtZeiterfassung/bin /root/bin
CMD /root/bin/zeiterfassung.sh