-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile_runner
39 lines (32 loc) · 993 Bytes
/
Dockerfile_runner
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
# https://hub.docker.com/_/debian
FROM docker.io/debian:testing-slim AS build
MAINTAINER Jelmer Vernooij <jelmer@jelmer.uk>
# Enable forward compatibility with newer versions of Python
ENV PYO3_USE_ABI3_FORWARD_COMPATIBILITY="1"
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 \
## Standard packages: ./CONTRIBUTING.md
cargo \
g++ \
gcc \
libpython3-dev \
libssl-dev \
pkg-config \
protobuf-compiler \
## Extra packages
dpkg-dev \
git \
libapt-pkg-dev \
python3-gpg \
python3-pip \
&& apt-get clean
COPY . /code
RUN pip3 install --break-system-packages --upgrade "/code[gcp,runner]" \
&& rm -rf /code
EXPOSE 9911
ENTRYPOINT ["janitor-runner", "--port=9911", "--listen-address=0.0.0.0"]