-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(linux-x64): move Dockerfile in platform repository
- Loading branch information
Showing
1 changed file
with
5 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
FROM debian:buster | ||
LABEL maintainer="Nicolas Marteau <[email protected]>" | ||
USER root | ||
|
||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get install -y \ | ||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
build-essential \ | ||
curl \ | ||
git \ | ||
|
@@ -17,20 +18,9 @@ RUN apt-get install -y \ | |
python3-mako \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - && \ | ||
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - && \ | ||
apt-get install -y nodejs | ||
|
||
RUN git clone https://github.com/microsoft/vcpkg.git && \ | ||
./vcpkg/bootstrap-vcpkg.sh && \ | ||
./vcpkg/vcpkg install libheif | ||
|
||
WORKDIR heif-converter | ||
|
||
COPY . . | ||
|
||
RUN npm install -g node-gyp && \ | ||
npm install && \ | ||
node-gyp configure --directory=src && \ | ||
node-gyp build --directory=src | ||
|
||
CMD ["/bin/bash"] | ||
./vcpkg/vcpkg install libheif |