forked from codacy/git-version
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (19 loc) · 748 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
28
29
30
31
32
33
FROM codacy/ci-base AS builder
RUN apk add --update --no-cache --force-overwrite \
openssl openssl-dev crystal shards g++ gc-dev \
libc-dev libevent-dev libxml2-dev llvm llvm-dev \
llvm-static make pcre-dev readline-dev \
yaml-dev zlib-dev git
RUN git config --global user.email "[email protected]" && git config --global user.name "Dung Huynh Duc"
RUN mkdir -p /workspace
WORKDIR /workspace
COPY ./ /workspace
ENV ALPINE=1
RUN make test build
FROM codacy/ci-base
LABEL maintainer="[email protected]"
RUN apk add --update --no-cache --force-overwrite gc-dev pcre-dev libevent-dev git
COPY --from=builder /workspace/bin/git-version /bin
RUN mkdir -p /repo
VOLUME /repo
CMD ["/bin/git-version", "--folder=/repo"]