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
621b4de3f6
commit
4d8d3aa85c
@ -3,6 +3,10 @@ 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
|
apt-get install -y wget curl rsync lftp git jq python3-dev python3-pip yum-utils createrepo aria2 ack composer php-curl php-zip
|
||||||
|
|
||||||
|
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 STATIC_DEPS=true pip3 install pyquery
|
RUN STATIC_DEPS=true pip3 install pyquery
|
||||||
RUN pip3 install requests[socks] pyyaml gsutil awscli bandersnatch==3.6.0
|
RUN pip3 install requests[socks] pyyaml gsutil awscli bandersnatch==3.6.0
|
||||||
|
@ -3,7 +3,7 @@ FROM python:3.8-alpine
|
|||||||
RUN apk add --update --no-cache --virtual .build-deps \
|
RUN apk add --update --no-cache --virtual .build-deps \
|
||||||
g++ \
|
g++ \
|
||||||
bash \
|
bash \
|
||||||
python-dev \
|
python3-dev \
|
||||||
libxml2 \
|
libxml2 \
|
||||||
libxml2-dev && \
|
libxml2-dev && \
|
||||||
apk add libxslt-dev
|
apk add libxslt-dev
|
||||||
|
@ -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 && \
|
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
|
||||||
# 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