Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
shadowban-eu-backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
shadowban-eu-backend
Commits
68515974
Commit
68515974
authored
Jan 31, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
total rework
parent
8cea3cc5
Pipeline
#9126
passed with stage
in 26 seconds
Changes
7
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
16 deletions
+26
-16
.dockerignore
.dockerignore
+2
-1
.gitignore
.gitignore
+1
-0
Dockerfile
Dockerfile
+5
-6
Dockerfile.old
Dockerfile.old
+10
-0
backend_requests.py
backend_requests.py
+2
-2
requirements.txt
requirements.txt
+2
-5
requirements.txt.old
requirements.txt.old
+4
-2
No files found.
.dockerignore
View file @
68515974
...
@@ -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
.gitignore
View file @
68515974
...
@@ -8,6 +8,7 @@ pids
...
@@ -8,6 +8,7 @@ pids
*.pid
*.pid
*.seed
*.seed
__pycache__
__pycache__
*.pyc
# IDE
# IDE
.idea
.idea
...
...
Dockerfile
View file @
68515974
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" ]
Dockerfile.old
0 → 100644
View file @
68515974
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" ]
backend_requests.py
View file @
68515974
...
@@ -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"
)
requirements.txt
View file @
68515974
flask
flask
requests_oauthlib
flask_cors
flask_cors
aiohttp
requests_oauthlib
pymongo
gunicorn
bs4
==0.0.1
daemon
requirements.txt.old
View file @
68515974
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment