-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile_worker
52 lines (38 loc) · 1.31 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
52
# 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 \
libpython3-dev \
libssl-dev \
pkg-config \
protobuf-compiler \
python3-minimal \
&& apt-get clean
COPY . /code
RUN cargo build --verbose --release --manifest-path /code/worker/Cargo.toml
# 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 \
dpkg-dev \
&& apt-get clean
COPY --from=build /code/target/release/janitor-worker /usr/local/bin/janitor-worker
COPY autopkgtest-wrapper /usr/local/bin/autopkgtest-wrapper
ENV AUTOPKGTEST=/usr/local/bin/autopkgtest-wrapper
EXPOSE 9821
ENTRYPOINT ["janitor-worker", "--port=9821", "--listen-address=0.0.0.0"]