forked from jelmer/janitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile_bzr_store
38 lines (30 loc) · 975 Bytes
/
Dockerfile_bzr_store
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
# 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
python3-gpg \
python3-pip \
&& apt-get clean
COPY . /code
RUN pip3 install --break-system-packages --upgrade "/code[bzr-store,cloud]" \
&& rm -rf /code
VOLUME /bzr
EXPOSE 9929
ENTRYPOINT ["janitor-bzr-store", "--port=9929", "--listen-address=0.0.0.0", "--vcs-path=/bzr"]