Content-Length: 283033 | pFad | http://github.com/cwjokaka/ok_ip_proxy_pool/commit/b4e5c06b2ab924d22f571d3ca8abc291e7b1d143

36 add Dockerfile · cwjokaka/ok_ip_proxy_pool@b4e5c06 · GitHub
Skip to content

Commit

Permalink
add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
cwjokaka committed Sep 27, 2019
1 parent c34b6b9 commit b4e5c06
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM python:3.7
MAINTAINER cwjokaka <cwjokaka@gmail.com>
RUN mkdir /code
WORKDIR /code
COPY requirements.txt /code/
RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/
COPY . /code/
#WORKDIR /proxy_app
#COPY . ./
#RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/
EXPOSE 8080
#CMD ["python", "main.py"]
15 changes: 15 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: '3'
services:

proxy_pool:
build: .
ports:
- "80:8080"
command: python main.py
volumes:
- .:/code
networks:
- app_net

networks:
app_net:
2 changes: 1 addition & 1 deletion setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

# WEB配置(Flask)
WEB_SERVER = {
'host': 'localhost',
'host': '0.0.0.0',
'port': '8080'
}

Expand Down
2 changes: 1 addition & 1 deletion src/log/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

def get_logger():
"""
创建日志实例
创建日志单例
"""
formatter = logging.Formatter("%(asctime)s %(name)s:%(levelname)s - %(message)s", datefmt="%Y-%m-%d %H:%M:%S")
logger = logging.getLogger("monitor")
Expand Down

0 comments on commit b4e5c06

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/cwjokaka/ok_ip_proxy_pool/commit/b4e5c06b2ab924d22f571d3ca8abc291e7b1d143

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy