Skip to content

Commit

Permalink
consistently install netcat
Browse files Browse the repository at this point in the history
alpine had busybox nc, ubuntu had nothing

alpine and ubuntu both have netcat-openbsd package, so let's install
that.

Signed-off-by: Alex Suraci <[email protected]>
  • Loading branch information
vito committed Oct 22, 2020
1 parent 89aa687 commit 9009b22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dockerfiles/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ RUN go build -o /assets/check ./cmd/check
FROM alpine:edge
COPY --from=builder assets/ /opt/resource/
RUN chmod +x /opt/resource/*
RUN apk --no-cache add bash wget
RUN apk --no-cache add bash wget netcat-openbsd
2 changes: 1 addition & 1 deletion dockerfiles/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ RUN go build -o /assets/check ./cmd/check
FROM ubuntu:bionic AS resource
COPY --from=builder assets/ /opt/resource/
RUN chmod +x /opt/resource/*
RUN apt-get update && apt-get -y -u install wget
RUN apt-get update && apt-get -y install wget netcat-openbsd

0 comments on commit 9009b22

Please sign in to comment.