-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile_ognibuild_dep
35 lines (27 loc) · 1.08 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
FROM docker.io/debian:testing-slim AS m4
ARG DEBIAN_FRONTEND=noninteractive
RUN apt -y update && apt -y --no-install-recommends install auto-apt-proxy aptitude apt-file && apt-file update && apt-file search /usr/share/aclocal/.*.m4 --regex -l | xargs aptitude -y install
FROM docker.io/debian:testing-slim AS build
MAINTAINER Jelmer Vernooij <[email protected]>
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update && apt -y install auto-apt-proxy && apt install --no-install-recommends -y autoconf \
apt-file \
dpkg-dev \
git \
make \
rustc \
libpython3-dev \
python3-pip \
ca-certificates \
gnome-pkg-tools \
cargo \
libapt-pkg-dev \
g++ \
&& apt clean \
&& apt-file update
RUN rm -rf /usr/share/aclocal
COPY --from=m4 /usr/share/aclocal /usr/share/aclocal
RUN pip3 install --break-system-packages python_apt@git+https://salsa.debian.org/apt-team/python-apt
RUN pip3 install --break-system-packages "ognibuild[dep_server,gcp,debian]@git+https://github.com/jelmer/ognibuild.git"
EXPOSE 9934
ENTRYPOINT ["python3", "-m", "ognibuild.dep_server", "--port=9934", "--listen-address=0.0.0.0"]