Skip to content

Commit

Permalink
Build a docker image and push to docker hub (#8)
Browse files Browse the repository at this point in the history
* Add Dockerfile

* Document how to build and deploy docker image
  • Loading branch information
adamschmideg committed Apr 8, 2020
1 parent b928fe7 commit a712577
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM golang:1.13-alpine AS builder
RUN apk update && apk add make
ADD . /ethspam
RUN cd /ethspam && make
FROM alpine:latest AS production
COPY --from=builder /ethspam/ethspam /usr/local/bin/
ENTRYPOINT ["ethspam"]
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ Also makes for an okay superniche screensaver.
[Grab a binary release](https://github.com/shazow/ethspam/releases) or build from source.


## Build docker image and push to docker hub

```
docker build -t shazow/ethspam .
docker push shazow/ethspam
```
## License

MIT

0 comments on commit a712577

Please sign in to comment.