forked from webdevops/azure-devops-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (24 loc) · 709 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM golang:1.11 as build
# golang deps
WORKDIR /tmp/app/
COPY ./src/glide.yaml /tmp/app/
COPY ./src/glide.lock /tmp/app/
RUN curl https://glide.sh/get | sh \
&& glide install
WORKDIR /go/src/azure-devops-exporter/src
COPY ./src /go/src/azure-devops-exporter/src
RUN mkdir /app/ \
&& cp -a /tmp/app/vendor ./vendor/ \
&& cp -a entrypoint.sh /app/ \
&& chmod 555 /app/entrypoint.sh \
&& go build -o /app/azure-devops-exporter
#############################################
# FINAL IMAGE
#############################################
FROM alpine
RUN apk add --no-cache \
libc6-compat \
ca-certificates
COPY --from=build /app/ /app/
USER 1000
ENTRYPOINT ["/app/entrypoint.sh"]