mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +00:00
Dockerfile for stackage
This commit is contained in:
parent
55a88c28d6
commit
d70240b96c
20
dockerfiles/stackage/Dockerfile
Normal file
20
dockerfiles/stackage/Dockerfile
Normal file
@ -0,0 +1,20 @@
|
||||
FROM python:3.6
|
||||
MAINTAINER Justin Wong <yuzhi.wang@tuna.tsinghua.edu.cn>
|
||||
|
||||
RUN echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ jessie main contrib non-free" > /etc/apt/sources.list && \
|
||||
echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ jessie-backports main contrib non-free" >> /etc/apt/sources.list && \
|
||||
echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ jessie-updates main contrib non-free" >> /etc/apt/sources.list && \
|
||||
echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian-security/ jessie/updates main contrib non-free" >> /etc/apt/sources.list
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y git aria2
|
||||
|
||||
RUN pip3 install requests pyyaml
|
||||
|
||||
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && apt-get install -y locales -qq && locale-gen
|
||||
ENV LANG=en_US.UTF-8
|
||||
ENV LANGUAGE=en_US.UTF-8
|
||||
ENV LC_ALL=en_US.UTF-8
|
||||
|
||||
ENV HOME=/tmp
|
||||
CMD /bin/bash
|
2
stackage.py
Normal file → Executable file
2
stackage.py
Normal file → Executable file
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python3 -u
|
||||
|
||||
# python deps: requests, pyyaml
|
||||
# non-python deps: aria2, git
|
||||
|
Loading…
x
Reference in New Issue
Block a user