Skip to content

Commit 7fad470

Browse files
authored
Updates Dockerfile
Current docker build using Dockerfile ends with error ``` # github.com/etsy/hound/cmds/houndd /usr/lib/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1 /usr/lib/gcc/x86_64-alpine-linux-musl/6.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find Scrt1.o: No such file or directory /usr/lib/gcc/x86_64-alpine-linux-musl/6.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find crti.o: No such file or directory /usr/lib/gcc/x86_64-alpine-linux-musl/6.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lpthread /usr/lib/gcc/x86_64-alpine-linux-musl/6.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lssp_nonshared collect2: error: ld returned 1 exit status The command '/bin/sh -c apk update && apk add go git subversion mercurial bzr openssh && go install github.com/etsy/hound/cmds/houndd && apk del go && rm -f /var/cache/apk/* && rm -rf /go/src /go/pkg' returned a non-zero code: 2 ``` Adding package libc-dev resolves build problems.
1 parent 795d14a commit 7fad470

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ COPY . /go/src/github.com/etsy/hound
77
COPY default-config.json /data/config.json
88

99
RUN apk update \
10-
&& apk add go git subversion mercurial bzr openssh \
10+
&& apk add go git subversion libc-dev mercurial bzr openssh \
1111
&& go install github.com/etsy/hound/cmds/houndd \
1212
&& apk del go \
1313
&& rm -f /var/cache/apk/* \

0 commit comments

Comments
 (0)