File tree Expand file tree Collapse file tree 4 files changed +19
-2
lines changed
Expand file tree Collapse file tree 4 files changed +19
-2
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
29RUN apk add --no-cache bc
310COPY ./entrypoint.sh /
411ENTRYPOINT ["/entrypoint.sh" ]
Original file line number Diff line number Diff line change 11The MIT License (MIT)
22
3- Copyright (c) 2016 Vicente Zepeda
3+ Copyright (c) 2020 Vicente Zepeda
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
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+ export IMAGE_NAME=" chentex/random-logger"
5+
6+ docker build --build-arg VCS_REF=` git rev-parse --short HEAD` \
7+ --build-arg BUILD_DATE=` date -u +”%Y-%m-%dT%H:%M:%SZ”` \
8+ --build-arg VERSION=$VERSION \
9+ -f Dockerfile -t $IMAGE_NAME :v$VERSION -t $IMAGE_NAME :latest .
You can’t perform that action at this time.
0 commit comments