Closed pjanuario closed 5 years ago
Dockerfile
FROM node:10-alpine
ENV APP_DIR=/app
COPY package.json $APP_DIR/
RUN chown -R node:node $APP_DIR/*
WORKDIR $APP_DIR
RUN apk add --no-cache make gcc g++ python zeromq zeromq-dev
RUN npm install
USER node
ADD . $APP_DIR
EXPOSE 3000
I was able to build the image, it was a silly mistake related with node modules being included in the image and the fact that red warnings were appearing.
@pjanuario why did you install the apks zeromq zeromq-dev
rather than just doing npm install zeromq
and relying on npm install to build what is needed.
@rudolph9 because alpine binaries are not available.
I am still facing this issue even though I included all binaries that you have added to your alpine image. Anything else you might have done extra?
I am trying to build a alpine image with zeromq library installed without much success, I used the same approach that I was using before with zmq module.
I also tried some other alternatives as described in the documentation without much success, can someone give a hint here:
After this build that gives does errors the container is still built and if try to run a example app it will give the following error:
Any clue?