Skip to content
This repository was archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #79 from rsteube/add-dockerfile
Browse files Browse the repository at this point in the history
added Dockerfile
  • Loading branch information
PaulMaddox authored Sep 5, 2019
2 parents 36660d4 + 76e1245 commit 6b70db3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Dockerfile
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM golang:alpine

RUN apk add --no-cache git upx

WORKDIR /fargate

ADD go.mod .
RUN go mod download

ADD . /fargate
RUN go build -ldflags="-s -w"
RUN upx --brute fargate

FROM alpine

RUN apk add --no-cache ca-certificates

COPY --from=0 /fargate/fargate /usr/local/bin/

0 comments on commit 6b70db3

Please sign in to comment.