-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from mmomtchev/nodejs
Node.js services support through `libnode`
- Loading branch information
Showing
24 changed files
with
1,451 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM ubuntu:bionic-20201119 AS base | ||
|
||
ARG NODE_VERSION=16.15.1 | ||
|
||
RUN set -ex && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get update && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get -y install python3 g++-8 make python3-pip wget | ||
|
||
RUN wget https://github.com/nodejs/node/archive/refs/tags/v${NODE_VERSION}.tar.gz && \ | ||
mkdir -p /usr/src && \ | ||
tar -C /usr/src -zxvf v${NODE_VERSION}.tar.gz && \ | ||
cd /usr/src/node-${NODE_VERSION} && \ | ||
CXX=g++-8 ./configure --shared --prefix=/usr | ||
|
||
RUN cd /usr/src/node-${NODE_VERSION} && make -j4 | ||
|
||
RUN cd /usr/src/node-${NODE_VERSION} && make install && \ | ||
install out/Release/node /usr/bin && \ | ||
cd /usr/lib && ln -s libnode.so.93 libnode.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.