🗃️ modified: Dockerfile 🗃️

This commit is contained in:
Jason 2022-07-09 13:22:24 -04:00
parent c968e6b1da
commit 965609e3cd
No known key found for this signature in database
GPG Key ID: 4F765975C1F0EE5F

View File

@ -1,4 +1,4 @@
FROM casjaysdev/golang AS builder FROM casjaysdevdocker/golang AS builder
WORKDIR /app/gohttpserver WORKDIR /app/gohttpserver
RUN apk -U upgrade && \ RUN apk -U upgrade && \
@ -7,17 +7,17 @@ RUN apk -U upgrade && \
CGO_ENABLED=0 GOOS=linux go build -ldflags '-X main.VERSION=docker' -o gohttpserver && \ CGO_ENABLED=0 GOOS=linux go build -ldflags '-X main.VERSION=docker' -o gohttpserver && \
chmod +x gohttpserver chmod +x gohttpserver
FROM casjaysdev/alpine:latest FROM casjaysdevdocker/alpine:latest
ARG BUILD_DATE="$(date +'%Y-%m-%d %H:%M')" ARG BUILD_DATE="$(date +'%Y-%m-%d %H:%M')"
LABEL \ LABEL \
org.label-schema.name="gohttpserver" \ org.label-schema.name="gohttpserver" \
org.label-schema.description="Alpine based image with gohttpserver." \ org.label-schema.description="Alpine based image with gohttpserver." \
org.label-schema.url="https://github.com/casjaysdev/gohttpserver" \ org.label-schema.url="https://hub.docker.com/r/casjaysdevdocker/gohttpserver" \
org.label-schema.vcs-url="https://github.com/casjaysdev/gohttpserver" \ org.label-schema.vcs-url="https://github.com/casjaysdevdocker/gohttpserver" \
org.label-schema.build-date=$BUILD_DATE \ org.label-schema.build-date=$BUILD_DATE \
org.label-schema.version=$BUILD_DATE \ org.label-schema.version=$BUILD_DATE \
org.label-schema.vcs-ref=$BUILD_DATE \ org.label-schema.vcs-ref=$BUILD_DATE \
org.label-schema.license="MIT" \ org.label-schema.license="WTFPL" \
org.label-schema.vcs-type="Git" \ org.label-schema.vcs-type="Git" \
org.label-schema.schema-version="1.0" \ org.label-schema.schema-version="1.0" \
org.label-schema.vendor="CasjaysDev" \ org.label-schema.vendor="CasjaysDev" \