forked from moul/golang-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
21 lines (20 loc) · 825 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# minimalist runtime
FROM alpine:3.17.2
# dynamic config
ARG BUILD_DATE
ARG VCS_REF
ARG VERSION
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="golang-repo-template" \
org.label-schema.description="" \
org.label-schema.url="" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/MrEhbr/golang-repo-template" \
org.label-schema.vendor="Alexey Burmistrov" \
org.label-schema.version=$VERSION \
org.label-schema.schema-version="1.0" \
org.label-schema.cmd="docker run -i -t --rm MrEhbr/golang-repo-template" \
org.label-schema.help="docker exec -it $CONTAINER golang-repo-template --help"
COPY golang-repo-template /bin/
ENTRYPOINT ["/bin/golang-repo-template"]
#CMD []