-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dockerfile no longer worked with 1.16
- Loading branch information
1 parent
b402873
commit 303d837
Showing
3 changed files
with
5 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
FROM golang:1.16 | ||
WORKDIR /go | ||
ADD . /go/src/github.com/binxio/ssm-get-parameter | ||
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags '-extldflags "-static"' github.com/binxio/ssm-get-parameter | ||
WORKDIR /app | ||
ADD . /app | ||
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags '-extldflags "-static"' . | ||
|
||
FROM scratch | ||
COPY --from=0 /go/ssm-get-parameter / | ||
COPY --from=0 /app/ssm-get-parameter / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,3 @@ | ||
module github.com/binxio/ssm-get-parameter | ||
|
||
go 1.12 | ||
|
||
require ( | ||
github.com/aws/aws-sdk-go v1.29.2 | ||
github.com/go-ini/ini v1.52.0 // indirect | ||
github.com/stretchr/objx v0.2.0 // indirect | ||
golang.org/x/crypto v0.0.0-20200214034016-1d94cc7ab1c6 // indirect | ||
golang.org/x/mod v0.2.0 // indirect | ||
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e // indirect | ||
golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4 // indirect | ||
golang.org/x/text v0.3.2 // indirect | ||
golang.org/x/tools v0.0.0-20200213224642-88e652f7a869 // indirect | ||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 // indirect | ||
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect | ||
gopkg.in/yaml.v2 v2.2.8 // indirect | ||
) | ||
go 1.16 |