From e2f37b74933a1815a45483a139da8252c2919c4d Mon Sep 17 00:00:00 2001 From: Thomas Hobson Date: Tue, 5 Oct 2021 14:57:49 +1300 Subject: [PATCH] install API in container --- api/Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/api/Dockerfile b/api/Dockerfile index ec0d2a8..6e0ff79 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -13,11 +13,16 @@ RUN apt-get update && \ libncurses6 libncurses5 libedit-dev libseccomp-dev rename procps python3 \ libreadline-dev libblas-dev liblapack-dev libpcre3-dev libarpack2-dev \ libfftw3-dev libglpk-dev libqhull-dev libqrupdate-dev libsuitesparse-dev \ - libsundials-dev libpcre2-dev && \ + libsundials-dev libpcre2-dev curl sudo && \ rm -rf /var/lib/apt/lists/* RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen +RUN mkdir -m 0755 /nix && chown node /nix +RUN runuser -l node -c 'curl -L https://nixos.org/nix/install | sh -s -- --no-daemon ' +RUN runuser -l node -c 'source ~/.profile; nix-env -iA nixpkgs.nixUnstable' +RUN runuser -l node -c 'mkdir -p /home/node/.config/nix/; echo "experimental-features = nix-command flakes" >> /home/node/.config/nix/nix.conf' + WORKDIR /piston_api COPY ["package.json", "package-lock.json", "./"] RUN npm install