Commit 68515974 authored by nanahira's avatar nanahira

total rework

parent 8cea3cc5
Pipeline #9126 passed with stage
in 26 seconds
...@@ -8,6 +8,7 @@ pids ...@@ -8,6 +8,7 @@ pids
*.pid *.pid
*.seed *.seed
__pycache__ __pycache__
*.pyc
# IDE # IDE
.idea .idea
...@@ -64,5 +65,5 @@ mongo ...@@ -64,5 +65,5 @@ mongo
mprofile_*.dat mprofile_*.dat
.git* .git*
Dockerfile Dockerfile*
.dockerignore .dockerignore
...@@ -8,6 +8,7 @@ pids ...@@ -8,6 +8,7 @@ pids
*.pid *.pid
*.seed *.seed
__pycache__ __pycache__
*.pyc
# IDE # IDE
.idea .idea
......
FROM python:3.5.7-slim-buster FROM python:3.9-alpine
RUN mkdir /app
WORKDIR /app WORKDIR /app
COPY requirements.txt ./ COPY ./requirements.txt ./
RUN pip3 install --no-cache-dir -r ./requirements.txt RUN pip install -r requirements.txt
COPY ./backend_requests.py ./app.py
COPY . ./ COPY . ./
ENTRYPOINT [ "bash" ] CMD ["gunicorn", "--workers=2", "-b", "0.0.0.0:80", "app:app"]
CMD [ "./docker-entry.sh" ]
FROM python:3.5.7-slim-buster
RUN mkdir /app
WORKDIR /app
COPY requirements.txt ./
RUN pip3 install --no-cache-dir -r ./requirements.txt
COPY . ./
ENTRYPOINT [ "python3" ]
CMD [ "./docker-entry.sh" ]
...@@ -278,5 +278,5 @@ def searchban(screen_name): ...@@ -278,5 +278,5 @@ def searchban(screen_name):
return returnjson return returnjson
if __name__ == '__main__':
app.run(debug=True, port=os.environ.get("PORT", 5000), host="0.0.0.0") app.run(debug=True, port=os.environ.get("PORT", 5000), host="0.0.0.0")
aiohttp==3.7.4.post0 flask
requests_oauthlib
flask_cors
aiohttp
pymongo pymongo
bs4==0.0.1 bs4==0.0.1
daemon daemon
# gunicorn
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment