-
Notifications
You must be signed in to change notification settings - Fork 3
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 #13 from MyUnisoft/linuxmusl
chore: add libc.js to detect linux compiler and add Linux Dockerfile to manage compilation
- Loading branch information
Showing
5 changed files
with
79 additions
and
2 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,4 @@ | ||
// Import Third-Party Dependencies | ||
const { familySync, MUSL } = require("detect-libc"); | ||
|
||
console.log(familySync() === MUSL ? "musl" : ""); |
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,20 @@ | ||
FROM node:18-bullseye | ||
LABEL maintainer="Nicolas Marteau <[email protected]>" | ||
USER root | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
build-essential \ | ||
python3 \ | ||
python3-setuptools \ | ||
python3-mako \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /heif-converter | ||
|
||
COPY . . | ||
|
||
RUN npm install | ||
RUN npm run configure | ||
RUN npm run build | ||
RUN npm run test |
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,34 @@ | ||
FROM node:18-alpine | ||
LABEL maintainer="Nicolas Marteau <[email protected]>" | ||
|
||
RUN apk --no-cache add \ | ||
g++ \ | ||
gcc \ | ||
git \ | ||
zip \ | ||
tar \ | ||
wget \ | ||
nasm \ | ||
cmake \ | ||
make \ | ||
unzip \ | ||
bison \ | ||
libgcc \ | ||
libstdc++ \ | ||
gettext-dev \ | ||
glib-dev \ | ||
bash \ | ||
py3-setuptools \ | ||
linux-headers \ | ||
build-base \ | ||
curl && \ | ||
ln -sf python3 /usr/bin/python | ||
|
||
WORKDIR /heif-converter | ||
|
||
COPY . . | ||
|
||
RUN npm install | ||
RUN npm run configure | ||
RUN npm run build | ||
RUN npm run test |
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