Public | Automated Build

Last pushed: 2 months ago
Dockerfile
FROM golang:1.9.2-alpine3.6 as build COPY ./ /tmp/app # important files persistence RUN mkdir /default \ && cp /tmp/app/config.json /default/config.json \ && mv /tmp/app/entrypoint.sh /entrypoint.sh \ && chmod +x /entrypoint.sh # installing required packages RUN apk update && apk add ca-certificates wget tar git # dependencies RUN go get github.com/aws/aws-sdk-go/aws/signer/v4 \ && go get github.com/aws/aws-sdk-go/aws/credentials \ && go get github.com/google/uuid # compilation RUN mkdir -p /usr/local/go/src/github.com/khezen/ \ && mv /tmp/app /usr/local/go/src/github.com/khezen/espipe \ && go build -o /bin/espipe github.com/khezen/espipe FROM alpine:3.6 COPY --from=build /default/config.json /default/config.json COPY --from=build /entrypoint.sh /entrypoint.sh COPY --from=build /bin/espipe /bin/espipe RUN apk add --no-cache ca-certificates \ && mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2 ENTRYPOINT ["/entrypoint.sh"] CMD ["espipe"]
Source Repository