Skip to content

Commit

Permalink
dockerfile no longer worked with 1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanholsteijn committed Mar 6, 2021
1 parent b402873 commit 303d837
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 63 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
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 /
17 changes: 1 addition & 16 deletions go.mod
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
43 changes: 0 additions & 43 deletions go.sum

This file was deleted.

0 comments on commit 303d837

Please sign in to comment.