-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile_ognibuild_dep
71 lines (55 loc) · 1.8 KB
/
Dockerfile_ognibuild_dep
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# https://hub.docker.com/_/debian
FROM docker.io/debian:testing-slim AS m4
MAINTAINER Jelmer Vernooij <[email protected]>
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update --yes \
&& apt-get install --yes --no-install-recommends \
auto-apt-proxy \
iproute2 \
&& apt-get satisfy --yes --no-install-recommends \
apt-file \
aptitude \
&& apt-get clean \
&& apt-file update \
&& apt-file search /usr/share/aclocal/.*.m4 --regex -l | xargs aptitude -y install
# https://hub.docker.com/_/debian
FROM docker.io/debian:testing-slim AS build
MAINTAINER Jelmer Vernooij <[email protected]>
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update --yes \
&& apt-get install --yes --no-install-recommends \
auto-apt-proxy \
iproute2 \
&& apt-get satisfy --yes --no-install-recommends \
ca-certificates \
cargo \
gcc \
git \
libc6-dev \
libpython3-dev \
libssl-dev \
pkg-config \
python3-minimal \
&& apt-get clean \
&& git clone https://github.com/jelmer/ognibuild.git /code/ \
&& cd /code/ \
&& cargo build --verbose --release #-p dep-server
# https://hub.docker.com/_/debian
FROM docker.io/debian:testing-slim
MAINTAINER Jelmer Vernooij <[email protected]>
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update --yes \
&& apt-get install --yes --no-install-recommends \
auto-apt-proxy \
iproute2 \
&& apt-get upgrade --yes \
&& apt-get satisfy --yes --no-install-recommends \
libpython3-dev \
python3-breezy \
&& apt-get clean \
&& rm -rf /usr/share/aclocal
COPY --from=m4 /usr/share/aclocal /usr/share/aclocal
COPY --from=build /code/target/release/ /usr/local/bin/
EXPOSE 9934
# $ janitor-ognibuild
ENTRYPOINT ["dep-server", "--port=9934", "--listen-address=0.0.0.0"]