mirror of
https://github.com/eclipse/upm.git
synced 2025-03-16 05:27:28 +03:00

Make a build heriarchy to reduce images size. Add Android Things builds to build matrix. Drop gcc-4 builds, use gcc-5 and gcc-6 instead. Add SonarQube static analysis scans. Signed-off-by: Nicolas Oliver <dario.n.oliver@intel.com>
18 lines
422 B
Docker
18 lines
422 B
Docker
FROM upm-base
|
|
|
|
WORKDIR /opt
|
|
|
|
# Node.js Build Dependencies
|
|
RUN wget -q -O - https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
|
|
ENV NVM_DIR /root/.nvm
|
|
ARG NODE_VERSION
|
|
RUN . $NVM_DIR/nvm.sh && nvm install $NODE_VERSION && nvm use $NODE_VERSION && \
|
|
npm install -g node-gyp && node-gyp install
|
|
ENV PATH $NVM_DIR/versions/node/$NODE_VERSION/bin:$PATH
|
|
|
|
# Set Workdir
|
|
WORKDIR $UPM_SRC_DIR
|
|
|
|
CMD bash
|
|
|