mirror of
https://github.com/casjaysdevdocker/gohttpserver
synced 2025-01-18 12:34:32 -05:00
🗃️ modified: Dockerfile 🗃️
This commit is contained in:
parent
c968e6b1da
commit
965609e3cd
10
Dockerfile
10
Dockerfile
@ -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" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user