forked from hashicorp/http-echo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 752 Bytes
/
Dockerfile
File metadata and controls
28 lines (21 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
FROM gcr.io/distroless/static-debian12:nonroot as default
# TARGETOS and TARGETARCH are set automatically when --platform is provided.
ARG TARGETOS
ARG TARGETARCH
ARG PRODUCT_VERSION
ARG BIN_NAME
ENV PRODUCT_NAME=$BIN_NAME
LABEL name="http-echo" \
maintainer="HashiCorp Consul Team <consul@hashicorp.com>" \
vendor="HashiCorp" \
version=$PRODUCT_VERSION \
release=$PRODUCT_VERSION \
licenses="MPL-2.0" \
summary="A test webserver that echos a response. You know, for kids."
COPY dist/$TARGETOS/$TARGETARCH/$BIN_NAME /
COPY LICENSE /usr/share/doc/$PRODUCT_NAME/LICENSE.txt
EXPOSE 5678/tcp
ENV ECHO_TEXT="hello-world"
ENTRYPOINT ["/http-echo"]