nix-channels: Dockerfile: Merge RUN commands

This commit is contained in:
dramforever 2020-01-15 14:27:47 +08:00 committed by GitHub
parent 8ccd981c1b
commit ce612f6cbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,14 +1,11 @@
FROM python:3-buster FROM python:3-buster
MAINTAINER Wang Ruikang <dramforever@live.com> MAINTAINER Wang Ruikang <dramforever@live.com>
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
RUN pip3 install pyquery requests # 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 && \
# Install Nix. To simplify management we only copy binaries and create mkdir /tmp/nix.unpack && \
# symlinks, and do no further configuration
RUN mkdir /tmp/nix.unpack && \
tar xpf /tmp/nix.tar.xz -C /tmp/nix.unpack && \ tar xpf /tmp/nix.tar.xz -C /tmp/nix.unpack && \
mkdir /nix && \ mkdir /nix && \
cp -dpr /tmp/nix.unpack/*/store /nix/store && \ cp -dpr /tmp/nix.unpack/*/store /nix/store && \