From c3ac1ed5c283ed561d561e5068a8332a2113391a Mon Sep 17 00:00:00 2001 From: Nicolas MARTEAU Date: Fri, 5 Jul 2024 10:36:36 +0200 Subject: [PATCH] chore(linux-x64): move Dockerfile in platform repository --- {npm => platform}/linux-x64/Dockerfile | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) rename {npm => platform}/linux-x64/Dockerfile (50%) diff --git a/npm/linux-x64/Dockerfile b/platform/linux-x64/Dockerfile similarity index 50% rename from npm/linux-x64/Dockerfile rename to platform/linux-x64/Dockerfile index 7068fd5..c72aef8 100644 --- a/npm/linux-x64/Dockerfile +++ b/platform/linux-x64/Dockerfile @@ -1,8 +1,9 @@ FROM debian:buster +LABEL maintainer="Nicolas Marteau " 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"] \ No newline at end of file + ./vcpkg/vcpkg install libheif \ No newline at end of file