File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 1
- FROM alpine:3.8
1
+ FROM alpine:3.12
2
+ ARG BUILD_DATE
3
+ ARG VCS_REF
4
+ ARG VERSION
5
+ LABEL org.label-schema.build-date=$BUILD_DATE \
6
+ org.label-schema.vcs-ref=$VCS_REF \
7
+ org.label-schema.vcs-url="https://github.com/chentex/random-logger" \
8
+ org.label-schema.version=$VERSION
2
9
RUN apk add --no-cache bc
3
10
COPY ./entrypoint.sh /
4
11
ENTRYPOINT ["/entrypoint.sh" ]
Original file line number Diff line number Diff line change
1
+ 1.0.0
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ export VERSION=$( cat hooks/VERSION)
4
+
5
+ docker build --build-arg VCS_REF=` git rev-parse —-short HEAD` \
6
+ --build-arg BUILD_DATE=` date -u +”%Y-%m-%dT%H:%M:%SZ”` \
7
+ --build-arg VERSION=$VERSION \
8
+ -f Dockerfile -t chentex/random-logger:$VERSION
You can’t perform that action at this time.
0 commit comments