Log extra environment information (#95)
* Make metrics tests use a host port * fix port forwarding in devconfig tests * Log extra environment information at startup
This commit is contained in:
committed by
Stephen Marshall
parent
6996f2b9b3
commit
9f3032f014
32
vendor/github.com/genuinetools/amicontained/Dockerfile
generated
vendored
Normal file
32
vendor/github.com/genuinetools/amicontained/Dockerfile
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
FROM golang:alpine as builder
|
||||
MAINTAINER Jessica Frazelle <jess@linux.com>
|
||||
|
||||
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
||||
ENV GOPATH /go
|
||||
|
||||
RUN apk add --no-cache \
|
||||
ca-certificates
|
||||
|
||||
COPY . /go/src/github.com/genuinetools/amicontained
|
||||
|
||||
RUN set -x \
|
||||
&& apk add --no-cache --virtual .build-deps \
|
||||
git \
|
||||
gcc \
|
||||
libc-dev \
|
||||
libgcc \
|
||||
make \
|
||||
&& cd /go/src/github.com/genuinetools/amicontained \
|
||||
&& make static \
|
||||
&& mv amicontained /usr/bin/amicontained \
|
||||
&& apk del .build-deps \
|
||||
&& rm -rf /go \
|
||||
&& echo "Build complete."
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=builder /usr/bin/amicontained /usr/bin/amicontained
|
||||
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs
|
||||
|
||||
ENTRYPOINT [ "amicontained" ]
|
||||
CMD [ "--help" ]
|
||||
Reference in New Issue
Block a user