mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 12:36:28 +00:00
nix-channels: add to dockerfiles
This commit is contained in:
parent
7a75219065
commit
8ccd981c1b
19
dockerfiles/nix-channels/Dockerfile
Normal file
19
dockerfiles/nix-channels/Dockerfile
Normal file
@ -0,0 +1,19 @@
|
||||
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
|
||||
|
||||
# Install Nix. To simplify management we only copy binaries and create
|
||||
# symlinks, and do no further configuration
|
||||
|
||||
RUN mkdir /tmp/nix.unpack && \
|
||||
tar xpf /tmp/nix.tar.xz -C /tmp/nix.unpack && \
|
||||
mkdir /nix && \
|
||||
cp -dpr /tmp/nix.unpack/*/store /nix/store && \
|
||||
ln -s /nix/store/*-nix-*/bin/* /usr/local/bin && \
|
||||
rm -rf /tmp/nix.tar.xz /tmp/nix.unpack
|
||||
|
||||
ENV HOME=/tmp
|
||||
CMD /bin/bash
|
Loading…
x
Reference in New Issue
Block a user