intial dockerization
This commit is contained in:
11
populater/Dockerfile
Normal file
11
populater/Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
||||
FROM python:3
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY populater/requirements.txt ./
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY populater/src .
|
||||
ADD common ./common
|
||||
|
||||
CMD [ "python", "-u", "app.py" ]
|
15
populater/requirements.txt
Normal file
15
populater/requirements.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
async-timeout==4.0.2
|
||||
certifi==2022.12.7
|
||||
charset-normalizer==2.1.1
|
||||
click==8.1.3
|
||||
Flask==2.2.2
|
||||
gunicorn==20.1.0
|
||||
idna==3.4
|
||||
itsdangerous==2.1.2
|
||||
Jinja2==3.1.2
|
||||
MarkupSafe==2.1.1
|
||||
redis==4.4.0
|
||||
requests==2.28.1
|
||||
six==1.16.0
|
||||
urllib3==1.26.13
|
||||
Werkzeug==2.2.2
|
@@ -16,7 +16,7 @@ CLIENT_SECRET = os.environ.get('CLIENT_SECRET', None)
|
||||
if CLIENT_SECRET is None:
|
||||
raise ValueError("CLIENT_SECRET cannot be None, set using environment variable")
|
||||
|
||||
db = Db('localhost', 6379, 0, CLIENT_ID, CLIENT_SECRET)
|
||||
db = Db('redis', 6379, 0, CLIENT_ID, CLIENT_SECRET)
|
||||
|
||||
|
||||
def get_args():
|
||||
|
@@ -1 +0,0 @@
|
||||
../../common/
|
Reference in New Issue
Block a user