Skip to content

Commit 23ceaa8

Browse files
divyankscburgdorf
authored andcommitted
Add docker file
1 parent a04ba37 commit 23ceaa8

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

Dockerfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ release-trinity: clean
6868
twine upload dist/*
6969
git config commit.gpgSign "$(CURRENT_SIGN_SETTING)"
7070

71+
create-docker-image: clean
72+
docker build -t ethereum/trinity:latest -t ethereum/trinity:$(version) .
73+
7174
sdist: clean
7275
python setup.py sdist bdist_wheel
7376
ls -l dist

0 commit comments

Comments
 (0)