-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
50 lines (40 loc) · 1.11 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
FROM python:3.6.8-alpine
# Needed for pycurl
ENV PYCURL_SSL_LIBRARY=openssl
RUN \
apk add --no-cache \
python3-dev \
py3-setuptools \
cython \
eudev-dev \
libusb-dev \
curl \
unzip \
git \
libffi-dev \
build-base \
openssl-dev \
zlib-dev \
jpeg \
py3-pillow \
protobuf \
protobuf-dev \
libcurl \
curl-dev
COPY requirements.txt /
RUN pip3 install -r requirements.txt
RUN git clone https://github.com/simplestaking/trezor-common.git --branch staking_message
RUN git clone https://github.com/simplestaking/python-trezor.git --branch staking
# copy trezor-common with trezor proto messages for staking
RUN cp -r trezor-common python-trezor/vendor/
# setup python trezor
RUN cd python-trezor && python setup.py develop
# development stage, replace with git repo later
COPY signer/. /signer/
COPY app.py /
COPY tests/. /tests/
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
EXPOSE 5000
# CMD ["./entrypoint.sh"]
# ENTRYPOINT ["gunicorn", "-b", "0.0.0.0:5000", "-w", "4", "app:api"]