Files
plugin-drone-npm/Dockerfile.alpine
T
2016-06-24 18:40:26 -07:00

26 lines
793 B
Docker

# Docker image for the Drone NPM plugin
#
# cd $GOPATH/src/github.com/drone-plugins/drone-npm
# docker build --file=Dockerfile.alpine --rm=true -t plugins/npm .
FROM alpine:3.4
ENV GOROOT=/usr/lib/go \
GOPATH=/gopath \
GOBIN=/gopath/bin \
CGO_ENABLED=0 \
PATH=$PATH:$GOROOT/bin:$GOPATH/bin
WORKDIR /gopath/src/github.com/drone-plugins/drone-npm
ADD . /gopath/src/github.com/drone-plugins/drone-npm
RUN apk add -U go ca-certificates git nodejs && \
go get && \
go build -a -tags netgo && \
apk del go && \
mv drone-npm /bin/drone-npm && \
rm -rf /gopath && \
rm -rf /var/cache/apk/*
ENTRYPOINT ["/bin/drone-npm"]