File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM python:3.6
2
+ # Set up code directory
3
+ RUN mkdir -p /usr/src/app
4
+ WORKDIR /usr/src/app
5
+
6
+ RUN apt-get update && apt-get install -y libssl-dev
7
+ RUN apt-get update && apt-get install -y python3-pip
8
+ RUN apt-get update && apt-get install -y pandoc
9
+
10
+ # Copy the application py-evm to the /usr/src/app folder
11
+ COPY . /usr/src/app
12
+
13
+ # Remove existing virtualenv directory
14
+ RUN rm -rf venv_docker_build
15
+ # Install python dependencies
16
+ RUN pip install virtualenv
17
+ RUN cd /usr/src/app
18
+ RUN virtualenv -p python3 venv_docker_build
19
+ RUN . venv_docker_build/bin/activate
20
+ RUN pip3 install -e .[dev]
21
+ RUN pip3 install -U trinity
22
+
23
+ RUN echo "Type \` trinity\` to boot or \` trinity --help\` for an overview of commands"
24
+
25
+ EXPOSE 30303 30303/udp
26
+ ENTRYPOINT ["trinity" ]
27
+
28
+
Original file line number Diff line number Diff line change @@ -68,6 +68,9 @@ release-trinity: clean
68
68
twine upload dist/*
69
69
git config commit.gpgSign " $( CURRENT_SIGN_SETTING) "
70
70
71
+ create-docker-image : clean
72
+ docker build -t ethereum/trinity:latest -t ethereum/trinity:$(version ) .
73
+
71
74
sdist : clean
72
75
python setup.py sdist bdist_wheel
73
76
ls -l dist
You can’t perform that action at this time.
0 commit comments