Skip to content

Commit ce9d283

Browse files
committed
Still working on the docker issues
1 parent 0da343f commit ce9d283

8 files changed

Lines changed: 23 additions & 4 deletions

File tree

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,9 @@ development.env
2626
production.env
2727
sandbox.env
2828

29-
config.py
29+
config.py
30+
server/src/app/__pycache__/views.cpython-39.pyc
31+
server/src/entities/__pycache__/Settings.cpython-39.pyc
32+
server/src/prestart/__pycache__/setenv.cpython-39.pyc
33+
server/src/shared/__pycache__/LoggerFactory.cpython-39.pyc
34+
server/src/utils/__pycache__/generatePKCE.cpython-39.pyc

server/Dockerfile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9.6
1+
FROM python:3.9.6 AS builder
22

33
LABEL version="1.0"
44
LABEL description="Demo of a Medicare claims data sample app"
@@ -8,10 +8,17 @@ WORKDIR /server
88
COPY ["./src/configs/sample_config.py", "./src/configs/config.py"]
99
COPY ["./src/prestart/env/sandbox.sample.env","./src/prestart/env/development.env"]
1010

11-
COPY . .
11+
RUN pip install pipenv
12+
RUN pip install python-dotenv
13+
RUN pip install requests_toolbelt
14+
RUN pip install flask
15+
RUN pip install argparse
16+
RUN pip install requests
1217

13-
ENV ENV "development"
18+
COPY . .
1419

1520
EXPOSE 3001
1621

22+
ENV ENV "development"
23+
1724
CMD ["sh", "-c", "python run.py --ENV ${ENV}"]
203 Bytes
Binary file not shown.

server/src/app/views.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020
myLogger = LoggerFactory.get_logger(log_file=__name__,log_level='DEBUG')
2121
loggedInUser = getLoggedInUser()
2222

23+
#########################################################################################
24+
# Test route
25+
#########################################################################################
26+
@app.route('/',methods=['GET'])
27+
def verifyPortListening():
28+
return 'Listening on Port 3001 for the Server!'
29+
2330
#########################################################################################
2431
# Authorize routes
2532
#########################################################################################
6 Bytes
Binary file not shown.
6 Bytes
Binary file not shown.
6 Bytes
Binary file not shown.
28 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)