Skip to content

Commit

Permalink
chore(linux-x64): move Dockerfile in platform repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Dafyh committed Jul 5, 2024
1 parent 1716c25 commit c3ac1ed
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions npm/linux-x64/Dockerfile → platform/linux-x64/Dockerfile
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 \
Expand All @@ -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

0 comments on commit c3ac1ed

Please sign in to comment.