forked from davejohncole/kea_python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (25 loc) · 654 Bytes
/
Dockerfile
File metadata and controls
31 lines (25 loc) · 654 Bytes
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
ARG VER
FROM kea-dev:$VER AS build
WORKDIR /source
COPY . .
RUN make clean install \
&& mkdir /dist \
&& cd /usr/local \
&& find lib -name \*.so\* | tar cf - -T - | (cd /dist; tar xf -) \
&& tar cf - etc share/man bin sbin var | (cd /dist; tar xf -)
FROM ubuntu:21.04
ENV DEBIAN_FRONTEND noninteractive
COPY apt2 /etc/apt/sources.list
RUN apt-get update -y \
&& apt-get -y install \
procps \
socat \
python3 \
libpython3.9 \
liblog4cplus-2.0.5 \
libboost-system1.74.0 \
libffi8ubuntu1 \
libpq5 \
libmariadb3
COPY --from=build /dist /usr/local
RUN ldconfig