mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +00:00
nix-channels: Dockerfile: Merge RUN commands
This commit is contained in:
parent
8ccd981c1b
commit
ce612f6cbb
@ -1,14 +1,11 @@
|
||||
FROM python:3-buster
|
||||
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
|
||||
|
||||
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 && \
|
||||
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 && \
|
||||
|
Loading…
x
Reference in New Issue
Block a user