aboutsummaryrefslogtreecommitdiffstats
path: root/test/security/sslendpoints/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'test/security/sslendpoints/Dockerfile')
-rw-r--r--test/security/sslendpoints/Dockerfile11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/security/sslendpoints/Dockerfile b/test/security/sslendpoints/Dockerfile
new file mode 100644
index 000000000..415101e44
--- /dev/null
+++ b/test/security/sslendpoints/Dockerfile
@@ -0,0 +1,11 @@
+FROM golang:1.13.8 AS build
+
+WORKDIR /opt/onap.local/sslendpoints
+COPY . /opt/onap.local/sslendpoints
+RUN go mod download
+RUN CGO_ENABLED=0 go build -ldflags '-extldflags "-static"'
+
+FROM scratch
+COPY --from=build /opt/onap.local/sslendpoints/sslendpoints /bin/sslendpoints
+ENTRYPOINT ["/bin/sslendpoints"]
+CMD ["--help"]