/
Dockerfile
38 lines (30 loc) · 931 Bytes
/
Dockerfile
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
FROM dyne/devuan:beowulf
ENV debian buster
LABEL maintainer="Puria Nafisi Azizi <puria@dyne.org>" \
homepage="https://github.com/DECODEroject/petition-tp-python"
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
RUN apt-get update -y -q \
&& apt-get install -y -q \
pkg-config \
python3 \
python3-pip \
python3-stdeb \
python3-dev \
python3-protobuf \
python3-cbor \
python3-colorlog \
python3-toml \
python3-yaml \
python3-zmq \
build-essential \
&& apt-get clean
RUN pip3 install wheel
RUN pip3 install grpcio-tools
RUN mkdir -p /var/log/sawtooth /project
COPY src /project/petition-tp-python
RUN pip3 install -e /project/petition-tp-python
ENV PATH=$PATH:/project/petition-tp-python/bin
WORKDIR /project/petition-tp-python
RUN wget https://files.dyne.org/zenroom/nightly/zenroom-linux-amd64 -O /usr/local/bin/zenroom && chmod +x /usr/local/bin/zenroom
CMD petition-tp-python