Skip to content

Commit 0fe8e71

Browse files
committed
Upgrade alpine base image
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent a6b0364 commit 0fe8e71

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} CGO_ENABLED=${CGO_ENABLED} go build \
3030
--ldflags "-s -w -X 'github.com/openfaas/mqtt-connector/version.GitCommit=${GIT_COMMIT}' -X 'github.com/openfaas/mqtt-connector/version.Version=${VERSION}'" \
3131
-a -installsuffix cgo -o mqtt-connector
3232

33-
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.12 as ship
33+
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.14 as ship
3434
LABEL org.label-schema.license="MIT" \
3535
org.label-schema.vcs-url="https://github.com/openfaas/mqtt-connector" \
3636
org.label-schema.vcs-type="Git" \

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,12 @@ func main() {
128128
data := []byte(incoming[1])
129129

130130
if trimChannelKey {
131-
log.Printf("Topic before trim: %s\n", topic)
131+
log.Printf("Topic before trim: %s", topic)
132132
index := strings.Index(topic, "/")
133133
topic = topic[index+1:]
134134
}
135135

136-
log.Printf("Invoking (%s) on topic: %q, value: %q\n", gatewayURL, topic, data)
136+
log.Printf("Invoking (%s) on topic: %q, value: %q", gatewayURL, topic, data)
137137

138138
controller.Invoke(topic, &data)
139139

0 commit comments

Comments
 (0)