Skip to content

Commit

Permalink
Add Dockerfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-osman committed May 28, 2019
1 parent b6acda9 commit 3c75629
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/.git/
/.gitignore
/Dockerfile
/LICENSE.txt
/README.md

/i5
/i5.exe
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM golang:latest

# Disable cgo, to ensure a standalone binary
ENV CGO_ENABLED=0

ADD . /src

WORKDIR /src

RUN go build


FROM scratch

COPY --from=0 /src/i5 /usr/local/bin

ENTRYPOINT ["/usr/local/bin/i5"]

0 comments on commit 3c75629

Please sign in to comment.