use archlinux for dockerfile
This commit is contained in:
parent
9fd1269dd9
commit
fd93bffa49
33
Dockerfile
33
Dockerfile
|
|
@ -1,20 +1,27 @@
|
||||||
FROM ubuntu:20.04
|
FROM archlinux
|
||||||
|
|
||||||
|
ENV PIP_NO_CACHE_DIR 1
|
||||||
|
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
RUN chmod 777 /usr/src/app
|
RUN chmod 777 /usr/src/app
|
||||||
RUN apt-get -qq update && \
|
RUN pacman -Syu --noconfirm \
|
||||||
DEBIAN_FRONTEND="noninteractive" apt-get -qq install -y tzdata aria2 git python3 python3-pip \
|
git \
|
||||||
locales python3-lxml \
|
python-lxml \
|
||||||
curl pv jq ffmpeg \
|
curl \
|
||||||
p7zip-full p7zip-rar
|
pv \
|
||||||
COPY requirements.txt .
|
jq \
|
||||||
RUN pip3 install --no-cache-dir -r requirements.txt && \
|
ffmpeg \
|
||||||
apt-get -qq purge git
|
python \
|
||||||
|
p7zip \
|
||||||
|
python-pip \
|
||||||
|
openssl \
|
||||||
|
wget \
|
||||||
|
gcc \
|
||||||
|
neofetch \
|
||||||
|
&& rm -rf /var/cache/pacman/pkg /tmp
|
||||||
|
|
||||||
RUN locale-gen en_US.UTF-8
|
COPY requirements.txt .
|
||||||
ENV LANG en_US.UTF-8
|
RUN python3 -m pip install -r requirements.txt
|
||||||
ENV LANGUAGE en_US:en
|
|
||||||
ENV LC_ALL en_US.UTF-8
|
|
||||||
COPY . .
|
COPY . .
|
||||||
COPY netrc /root/.netrc
|
COPY netrc /root/.netrc
|
||||||
RUN chmod +x aria.sh
|
RUN chmod +x aria.sh
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue