renovate/Dockerfile
2018-12-28 06:58:46 +02:00

24 lines
703 B
Docker

FROM amd64/golang:1.11.2-alpine@sha256:2169a7effa73e283ad0f290021eaf14fd812dae9767646b5afcb5bf097b17c0b AS golang
FROM amd64/node:8.15.0-alpine@sha256:5fe1384520193db12183642fd0cf702132b53b8029e1c271c442ad4dc1b0d434
LABEL maintainer="Rhys Arkins <rhys@arkins.net>"
LABEL name="renovate"
WORKDIR /usr/src/app/
RUN apk add --quiet --no-cache git openssh-client ca-certificates php php-mbstring php-openssl php-zip php-zlib composer
COPY package.json .
COPY yarn.lock .
RUN yarn install --production && yarn cache clean
COPY lib lib
COPY --from=golang /usr/local/go/bin/go /bin/go
RUN mkdir -p /usr/local/go
COPY bin bin
USER node
ENTRYPOINT ["node", "/usr/src/app/lib/renovate.js"]
CMD ["--help"]