Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
FROM golang:alpine as builder
FROM golang:alpine as builder

RUN apk --no-cache add curl git make perl
RUN curl -s https://glide.sh/get | sh
RUN apk --no-cache add curl git make perl unzip
RUN wget "https://github.com/Masterminds/glide/releases/download/v0.13.3/glide-v0.13.3-linux-amd64.zip" && \
unzip glide-v0.13.3-linux-amd64.zip && \
mv linux-amd64/glide /usr/bin
COPY . /go/src/github.com/dcu/mongodb_exporter
RUN go env -w GO111MODULE=off
RUN cd /go/src/github.com/dcu/mongodb_exporter && make release

FROM alpine:3.4
MAINTAINER David Cuadrado <dacuad@facebook.com>
EXPOSE 9001

RUN apk add --update ca-certificates
Expand Down