Skip to content

Commit 1edcc2d

Browse files
feat: Add dockerfile for automated builds to dockerhub (ApeWorX#165)
* feat: added dockerfile * docs: added installing via docker and link to docker repo * fix: moved dockerfile to Dockerfile * perf: pinned versions, removed python-is-python3, changed -y to --yes * feat: entrypoint * fix: docker copy ape and build from . * perf: reduce layers, add dockerfile, build from ., add entrypoint
1 parent 3e7b237 commit 1edcc2d

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
./tests
2+
./docs
3+
./.github

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM ubuntu:20.04
2+
RUN apt-get update && apt-get upgrade --yes && apt-get install git python3.8 python3-pip --yes
3+
COPY . .
4+
RUN python3 ./setup.py install
5+
RUN ape plugins add solidity --yes
6+
RUN ape plugins add vyper --yes
7+
RUN ape plugins add infura --yes
8+
RUN ape plugins add etherscan --yes
9+
RUN ape plugins add ens --yes
10+
ENTRYPOINT ["ape"]

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ cd ape
2626
python3 setup.py install
2727
```
2828

29+
### via `docker`
30+
31+
Please visit our [Dockerhub](https://hub.docker.com/repository/docker/apeworx/ape) for more details on using Ape with Docker.
32+
2933
## Quick Usage
3034

3135
Ape is primarily meant to be used as a command line tool. Here are some things you can use ape to do:

0 commit comments

Comments
 (0)