Skip to content

Commit

Permalink
Update deps so image works on ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
taybenlor committed Sep 3, 2021
1 parent 79f5109 commit 3862a72
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
17 changes: 9 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
FROM golang:1.15 as builder
FROM golang:1.16 as builder
WORKDIR /go/src/github.com/codekitchen/dinghy-http-proxy
COPY join-networks.go .
COPY go.mod .
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go get -v github.com/fsouza/go-dockerclient
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -v -o join-networks

FROM jwilder/nginx-proxy:alpine
LABEL Author="Brian Palmer <[email protected]>"

RUN apk upgrade --no-cache \
&& apk add --no-cache --virtual=run-deps \
su-exec \
curl \
dnsmasq \
&& rm -rf /tmp/* \
/var/cache/apk/* \
/var/tmp/*
&& apk add --no-cache --virtual=run-deps \
su-exec \
curl \
dnsmasq \
&& rm -rf /tmp/* \
/var/cache/apk/* \
/var/tmp/*

COPY --from=builder /go/src/github.com/codekitchen/dinghy-http-proxy/join-networks /app/join-networks

Expand Down
7 changes: 7 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module github.com/codekitchen/dinghy-http-proxy

go 1.16

require (
github.com/fsouza/go-dockerclient v1.7.4
)

0 comments on commit 3862a72

Please sign in to comment.