logspout
logspout copied to clipboard
Cannot use logspout as a base image in my Dockerfile because of ONBUILD commands
I am attempting to use logspout as a base image that I add a few addtional steps to (to install some certs for tls support)
here is my Docker file:
FROM gliderlabs/logspout:v3.2.2
RUN apk add -U --virtual build-dependencies curl ca-certificates \
&& curl https://logdog.loggly.com/media/logs-01.loggly.com_sha12.crt -o /usr/local/share/ca-certificates/loggly.crt \
&& update-ca-certificates \
&& apk del build-dependencies \
&& rm -rf /var/cache/apk/*
here is my build output
$ docker build .
Sending build context to Docker daemon 64kB
Step 1/2 : FROM gliderlabs/logspout:v3.2.2
# Executing 3 build triggers...
Step 1/1 : COPY ./build.sh /src/build.sh
COPY failed: stat /var/lib/docker/tmp/docker-builder784084127/build.sh: no such file or directory
is there a version of your logspout image that can be use as a base image?
As a workaround, you could
1.) Add empty 'modules.go' and 'build.sh' files to the same directory as your Dockerfile (be sure to chmod 0774 build.sh).
2.) Or user Hashicorp's Packer to do provisioning.