Am trying to use the “plugins/docker” plugin to build a docker-image based on a Dockerfile with a multi-stage build.
- node-image for building the app
- httpd-image for “hosting” the built files
FROM node:6.7.0 RUN mkdir /build COPY / /build/ WORKDIR /build RUN npm install .... FROM httpd:2.4.29-alpine COPY --from=0 /build/public/ /usr/local/apache2/htdocs/ COPY httpd.conf /usr/local/apache2/conf/httpd.conf
But I am getting what seems to be a DNS lookup error when building the app (accessing npm-registry via an internal proxy, who’s IP is registered in route53):
Error: tunneling socket could not be established, cause=getaddrinfo EAI_AGAIN myproxy.internal.com:80
This does not fail when I build the app in a “normal” Drone build-step:
pipeline: build: image: node:6.7.0 commands: ...
Any clues as to how this can be solved?