mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +00:00
Add packages for aarch64 build
This commit is contained in:
parent
d12e1843c1
commit
e5715884fa
@ -4,7 +4,11 @@ MAINTAINER Justin Wong <yuzhi.wang@tuna.tsinghua.edu.cn>
|
|||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y wget curl rsync lftp git jq python3-dev python3-pip yum-utils createrepo aria2 ack composer php-curl php-zip libnss-unknown
|
apt-get install -y wget curl rsync lftp git jq python3-dev python3-pip yum-utils createrepo aria2 ack composer php-curl php-zip libnss-unknown
|
||||||
|
|
||||||
RUN pip3 install --upgrade pip
|
RUN if [ "$(uname -m)" != "x86_64" -a "$(uname -m)" != "i386" ]; then \
|
||||||
|
apt-get install -y libxml2-dev libxslt1-dev zlib1g-dev libssl-dev libffi-dev ;\
|
||||||
|
fi
|
||||||
|
|
||||||
|
RUN pip3 install --upgrade pip
|
||||||
RUN STATIC_DEPS=true python3 -m pip install pyquery
|
RUN STATIC_DEPS=true python3 -m pip install pyquery
|
||||||
RUN python3 -m pip install requests[socks] pyyaml gsutil awscli
|
RUN python3 -m pip install requests[socks] pyyaml gsutil awscli
|
||||||
|
|
||||||
|
@ -2,17 +2,19 @@ FROM debian:buster
|
|||||||
MAINTAINER Wang Ruikang <dramforever@live.com>
|
MAINTAINER Wang Ruikang <dramforever@live.com>
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y python3-dev python3-pip curl && \
|
apt-get install -y python3-dev python3-pip curl
|
||||||
pip3 install pyquery requests minio==6.0.2 && \
|
RUN if [ "$(uname -m)" != "x86_64" -a "$(uname -m)" != "i386" ]; then \
|
||||||
|
apt-get install -y libxml2-dev libxslt1-dev zlib1g-dev ;\
|
||||||
|
fi
|
||||||
|
RUN pip3 install pyquery requests minio==6.0.2
|
||||||
# Install Nix. To simplify management we only copy binaries and create
|
# Install Nix. To simplify management we only copy binaries and create
|
||||||
# symlinks, and do no further configuration
|
# 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 && \
|
RUN mkdir -p /tmp/nix.unpack && \
|
||||||
mkdir /tmp/nix.unpack && \
|
curl -L https://mirrors.tuna.tsinghua.edu.cn/nix/nix-2.3.2/nix-2.3.2-x86_64-linux.tar.xz | tar -xpJ -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 && \
|
||||||
ln -s /nix/store/*-nix-*/bin/* /usr/local/bin && \
|
ln -s /nix/store/*-nix-*/bin/* /usr/local/bin && \
|
||||||
rm -rf /tmp/nix.tar.xz /tmp/nix.unpack
|
rm -rf /tmp/nix.unpack
|
||||||
|
|
||||||
ENV HOME=/tmp
|
ENV HOME=/tmp
|
||||||
CMD /bin/bash
|
CMD /bin/bash
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM cybercode/alpine-ruby:2.3
|
FROM ruby:2.7-alpine
|
||||||
RUN gem install rubygems-mirror
|
RUN gem install rubygems-mirror
|
||||||
ENV BUSYBOX=1
|
ENV BUSYBOX=1
|
||||||
ENV HOME=/tmp
|
ENV HOME=/tmp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user