22 lines
497 B
Docker
22 lines
497 B
Docker
FROM alpine:3.19
|
|
|
|
ARG TARGETOS
|
|
ARG TARGETARCH
|
|
|
|
LABEL maintainer="Bo-Yi Wu <appleboy.tw@gmail.com>" \
|
|
org.label-schema.name="api" \
|
|
org.label-schema.vendor="Bo-Yi Wu" \
|
|
org.label-schema.schema-version="1.0" \
|
|
com.centurylinklabs.watchtower.stop-signal="SIGINT" \
|
|
io.containers.autoupdate="registry"
|
|
|
|
RUN apk update && apk add --no-cache ca-certificates
|
|
|
|
EXPOSE 8080
|
|
|
|
ENV GODEBUG netdns=go
|
|
|
|
COPY release/${TARGETOS}/${TARGETARCH}/example-go /bin/example-go
|
|
|
|
ENTRYPOINT ["/bin/example-go"]
|