-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile-ubuntu
42 lines (35 loc) · 1.05 KB
/
Dockerfile-ubuntu
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
FROM ubuntu:jammy AS builder
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive TZ="America\Los_Angeles" \
apt-get install -y \
build-essential \
bash \
git \
wget \
libzip-dev \
libssl-dev \
libcurl4-gnutls-dev \
libpugixml-dev
WORKDIR /usr/src
# RUN apt-get install -y valgrind
RUN git clone git://soutade.fr/libgourou.git \
&& cd libgourou \
&& make BUILD_STATIC=1 STATIC_UTILS=1
FROM ubuntu:jammy as release
COPY --from=builder /usr/src/libgourou/utils/acsmdownloader \
/usr/src/libgourou/utils/adept_activate \
/usr/src/libgourou/utils/adept_remove \
/usr/src/libgourou/utils/adept_loan_mgt \
/usr/local/bin/
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive TZ="America\Los_Angeles" \
&& apt-get install -y \
libpugixml1v5 \
libzip4 \
libssl3 \
libcurl4-gnutls-dev \
&& apt-get autoclean \
&& rm -rf /var/lib/apt/lists/*
COPY scripts /home/libgourou
WORKDIR /home/libgourou
ENTRYPOINT ["/bin/bash", "/home/libgourou/entrypoint.sh"]