Skip to content

Commit

Permalink
feat: Add dockerfile for automated builds to dockerhub (#165)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
sabotagebeats authored Oct 12, 2021
1 parent 3e7b237 commit 1edcc2d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
./tests
./docs
./.github
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM ubuntu:20.04
RUN apt-get update && apt-get upgrade --yes && apt-get install git python3.8 python3-pip --yes
COPY . .
RUN python3 ./setup.py install
RUN ape plugins add solidity --yes
RUN ape plugins add vyper --yes
RUN ape plugins add infura --yes
RUN ape plugins add etherscan --yes
RUN ape plugins add ens --yes
ENTRYPOINT ["ape"]
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ cd ape
python3 setup.py install
```

### via `docker`

Please visit our [Dockerhub](https://hub.docker.com/repository/docker/apeworx/ape) for more details on using Ape with Docker.

## Quick Usage

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

0 comments on commit 1edcc2d

Please sign in to comment.