docker打包

master
潘啟华 5 years ago
parent 8319857450
commit 7bd1089818
  1. 5
      Dockerfile
  2. 2
      PixivSearch/pixiv/pixiv.py
  3. 2
      PixivSearch/templates/pixiv/index.html
  4. 2270
      config
  5. 8
      sources.list

@ -5,4 +5,9 @@ COPY . /usr/src/app/
RUN pip install --upgrade pip RUN pip install --upgrade pip
RUN pip install -r /usr/src/app/requirements.txt RUN pip install -r /usr/src/app/requirements.txt
WORKDIR /usr/src/app/ WORKDIR /usr/src/app/
COPY sources.list /etc/apt/
COPY config /etc/privoxy/
RUN apt-get update \
&& apt-get install privoxy \
&& /etc/init.d/privoxy start
CMD ["sh", "./run.sh"] CMD ["sh", "./run.sh"]

@ -24,7 +24,7 @@ headers = {
lock = threading.Lock() # 多线程全局资源锁 lock = threading.Lock() # 多线程全局资源锁
total = 1 total = 1
address = '127.0.0.1:8118' address = '192.168.0.21:8118'
# proxies = {"http": "socks5://{0}".format(address), "https": "socks5://{0}".format(address)} # proxies = {"http": "socks5://{0}".format(address), "https": "socks5://{0}".format(address)}
proxies = {"http": "http://{0}".format(address), "https": "https://{0}".format(address)} proxies = {"http": "http://{0}".format(address), "https": "https://{0}".format(address)}

@ -66,7 +66,7 @@
<button class="btn btn-primary offset-md-3" id="button" type="submit">查询</button> <button class="btn btn-primary offset-md-3" id="button" type="submit">查询</button>
{% if download %} {% if download %}
<a href="{% static "/download/" %}{{ download }}">图包提取(文件大小:{{ size }})</a> <a href="{% static "/zip/" %}{{ download }}">图包提取(文件大小:{{ size }})</a>
{% endif %} {% endif %}
</div> </div>

2270
config

File diff suppressed because it is too large Load Diff

@ -0,0 +1,8 @@
deb http://mirrors.163.com/debian/ jessie main non-free contrib
deb http://mirrors.163.com/debian/ jessie-updates main non-free contrib
deb http://mirrors.163.com/debian/ jessie-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
Loading…
Cancel
Save