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

Commit

Permalink
added Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Mar 15, 2019
1 parent 7a0bd11 commit 76e1245
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 76e1245

Please sign in to comment.