-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile_publish
36 lines (29 loc) · 937 Bytes
/
Dockerfile_publish
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
# https://hub.docker.com/_/debian
FROM docker.io/debian:testing-slim AS build
MAINTAINER Jelmer Vernooij <[email protected]>
# 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
python3-gpg \
python3-pip \
&& apt-get clean
COPY . /code
RUN pip3 install --break-system-packages --upgrade "/code[gcp,publish]" \
&& rm -rf /code
EXPOSE 9912
ENTRYPOINT ["janitor-publish", "--port=9912", "--listen-address=0.0.0.0"]