aboutsummaryrefslogtreecommitdiffstats
path: root/test/security/sslendpoints/Dockerfile
blob: 415101e44bf0998db983757a5a2de56a52c1bdd5 (plain)
1
2
3
4
5
6
7
8
9
10
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"]