Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

node-gyp rebuild error ubuntu 20.04

FROM bcgovimages/von-image:py36-1.6-8

USER root

# Install nodejs
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN apt-get install -y 
        nodejs 
        build-essential

USER indy

WORKDIR $HOME

RUN mkdir nodejs
WORKDIR nodejs

ENV LD_LIBRARY_PATH=$HOME/.local/lib:/usr/local/lib:/usr/lib

# Get the dependencies loaded first - this makes rebuilds faster
COPY --chown=indy:indy package.json .
RUN npm install

# Copy rest of the app
COPY --chown=indy:indy . .
RUN chmod uga+x scripts/* bin/*

CMD [ "npm", "start" ]

EXPOSE 8000
 
PREVIOUS NEXT
Tagged: #rebuild #error #ubuntu
ADD COMMENT
Topic
Name
4+9 =