Switch from glide to dep & fix CI (#152) (#153)

This commit is contained in:
Brendan LE GLAUNEC
2018-03-12 15:04:06 +01:00
committed by Brendan Le Glaunec
parent 5d2626b639
commit fb9c5afc5f
6 changed files with 311 additions and 124 deletions
+10 -8
View File
@@ -7,20 +7,22 @@ WORKDIR /go/src/github.com/EtixLabs/cameradar/cameradar
RUN apk update && \
apk upgrade && \
apk add nmap nmap-nselibs nmap-scripts \
curl curl-dev \
gcc \
libc-dev \
git \
pkgconfig
RUN curl https://glide.sh/get | sh && glide install
curl curl-dev \
gcc \
libc-dev \
git \
pkgconfig
ENV DEP_VERSION="0.4.1"
RUN curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 -o $GOPATH/bin/dep
RUN chmod +x $GOPATH/bin/dep
RUN dep ensure
RUN go build -o cameradar
# Final stage
FROM alpine
RUN apk --update add --no-cache nmap nmap-nselibs nmap-scripts \
curl-dev
curl-dev
WORKDIR /app/cameradar
COPY --from=build-env /go/src/github.com/EtixLabs/cameradar/dictionaries/ /app/dictionaries/