Comments (2)
from proxypool.
Ty
Tried to modified Dockerbuild like that :
FROM python:3.7-alpine AS build
COPY requirements.txt /tmp/requirements.txt
RUN apk update &&
apk add --no-cache gcc bash g++ libffi-dev openssl-dev libxml2-dev libxslt-dev build-base musl-dev &&
pip install -U pip &&
pip install --timeout 30 --user --no-cache-dir --no-warn-script-location -r /tmp/requirements.txt -i https://pypi.douban.com/simple
FROM python:3.7-alpine
ENV APP_ENV=prod
ENV LOCAL_PKG="/root/.local"
COPY --from=build ${LOCAL_PKG} ${LOCAL_PKG}
ENV HEROKU_EXEC_DEBUG=1
RUN apk update && apk add --no-cache libffi-dev openssl-dev libxslt-dev &&
ln -sf ${LOCAL_PKG}/bin/* /usr/local/bin/
Set the working directory to /app
WORKDIR /app
Copy the current directory contents into the container at /app
COPY . /app
Expose port 3000 for accessing the app
EXPOSE 5555
This allows Heroku bind its PORT the Apps port
since Heroku needs to use its own PORT before the App can be made accessible to the World
EXPOSE $PORT
RUN adduser -D myuser
USER myuser
CMD chmod +x supervisord
ENTRYPOINT ["/bin/sh"]
CMD python run.py
Like i found on internet, no persistant folder, expose should be a variable and script dont allowed to run at root
from proxypool.
Related Issues (20)
- Task exception was never retrieved HOT 1
- Not able to start with the docker HOT 1
- 通过 random 接口调用的 ip ,试了十几个全都不可用 HOT 6
- 修改源码后Dockerfile重新build镜像报错 HOT 4
- Windows 环境下常规方式运行会重复多次启动进程
- 大佬, IP是从哪个网站获取的啊 HOT 1
- 为什么验证的返回的结果仍会带有本地ip, HOT 7
- tester报错:TypeError: Passing coroutines is forbidden, use tasks explicitly. HOT 2
- 没有模块报错
- 建议接口增加[返回代理数量]参数 HOT 1
- 建议接口增加[返回代理数量]参数
- mac 上使用 docker 部署出错。 HOT 4
- 怎么解决python11下运行run,py后报ImportError: cannot import name 'ProxySchemeUnsupported' from 'requests.packages.urllib3.exceptions'的问题? HOT 2
- Proxy, transparente
- Proxy
- It occurs an error when running the run.py on the 'run_tester' function HOT 1
- 无法正常获取代理 HOT 1
- 无法连接到localhost:5555,ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。 HOT 3
- 运行过程中有错误
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proxypool.