-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile_worker
51 lines (47 loc) · 1.18 KB
/
Dockerfile_worker
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
FROM docker.io/debian:testing-slim AS build
MAINTAINER Jelmer Vernooij <[email protected]>
ARG DEBIAN_FRONTEND=noninteractive
COPY . /code
COPY autopkgtest-wrapper /usr/local/bin/autopkgtest-wrapper
RUN apt update && apt -y install auto-apt-proxy && apt install --no-install-recommends -y \
build-essential \
cargo \
rustc \
libtdb-dev \
libclang-dev \
libssl-dev \
pkg-config \
ca-certificates \
libpython3-dev \
python3 \
protobuf-compiler \
&& cd /code && cargo build --release -p janitor-worker
FROM docker.io/debian:testing-slim
RUN apt update && apt -y install auto-apt-proxy && apt install --no-install-recommends -y autoconf \
apt-file \
ssh \
python3 \
pristine-tar \
devscripts \
quilt \
sbuild \
autopkgtest \
debootstrap \
git-buildpackage \
pristine-tar \
lintian \
perl-doc \
dpkg \
gnome-pkg-tools \
subversion \
ca-certificates \
mypy-protobuf \
protobuf-compiler \
ca-certificates \
python3-breezy \
&& apt clean \
&& apt-file update
COPY --from=build /code/target/release/janitor-worker /bin/janitor-worker
ENV AUTOPKGTEST=/usr/local/bin/autopkgtest-wrapper
EXPOSE 8080
ENTRYPOINT ["/bin/janitor-worker", "--port=8080", "--listen-address=0.0.0.0"]