From ce612f6cbbb55908703edf6e0772887dddad6651 Mon Sep 17 00:00:00 2001 From: dramforever Date: Wed, 15 Jan 2020 14:27:47 +0800 Subject: [PATCH] nix-channels: Dockerfile: Merge RUN commands --- dockerfiles/nix-channels/Dockerfile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/dockerfiles/nix-channels/Dockerfile b/dockerfiles/nix-channels/Dockerfile index f9f8a2b..7171d6d 100644 --- a/dockerfiles/nix-channels/Dockerfile +++ b/dockerfiles/nix-channels/Dockerfile @@ -1,14 +1,11 @@ FROM python:3-buster MAINTAINER Wang Ruikang -RUN curl https://mirrors.tuna.tsinghua.edu.cn/nix/nix-2.3.2/nix-2.3.2-x86_64-linux.tar.xz -o /tmp/nix.tar.xz - -RUN pip3 install pyquery requests - -# Install Nix. To simplify management we only copy binaries and create -# symlinks, and do no further configuration - -RUN mkdir /tmp/nix.unpack && \ +RUN pip3 install pyquery requests && \ + # Install Nix. To simplify management we only copy binaries and create + # symlinks, and do no further configuration + curl https://mirrors.tuna.tsinghua.edu.cn/nix/nix-2.3.2/nix-2.3.2-x86_64-linux.tar.xz -o /tmp/nix.tar.xz && \ + mkdir /tmp/nix.unpack && \ tar xpf /tmp/nix.tar.xz -C /tmp/nix.unpack && \ mkdir /nix && \ cp -dpr /tmp/nix.unpack/*/store /nix/store && \