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
*.pid
*.seed
__pycache__
*.pyc
# IDE
.idea
......@@ -64,5 +65,5 @@ mongo
mprofile_*.dat
.git*
Dockerfile
Dockerfile*
.dockerignore
......@@ -8,6 +8,7 @@ pids
*.pid
*.seed
__pycache__
*.pyc
# IDE
.idea
......
FROM python:3.5.7-slim-buster
FROM python:3.9-alpine
RUN mkdir /app
WORKDIR /app
COPY requirements.txt ./
RUN pip3 install --no-cache-dir -r ./requirements.txt
COPY ./requirements.txt ./
RUN pip install -r requirements.txt
COPY ./backend_requests.py ./app.py
COPY . ./
ENTRYPOINT [ "bash" ]
CMD [ "./docker-entry.sh" ]
CMD ["gunicorn", "--workers=2", "-b", "0.0.0.0:80", "app:app"]
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):
return returnjson
app.run(debug=True, port=os.environ.get("PORT", 5000), host="0.0.0.0")
if __name__ == '__main__':
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
bs4==0.0.1
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