File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,6 @@ COPY --from=build /app/ /opt/stage0_mongodb_api/
24
24
COPY Pipfile Pipfile.lock /opt/stage0_mongodb_api/
25
25
RUN pip install pipenv && pipenv install --deploy --system
26
26
27
- # Install the package in development mode
28
- RUN pip install -e .
29
-
30
27
# Install Gunicorn for running the Flask app in production
31
28
RUN pip install gunicorn
32
29
@@ -35,6 +32,7 @@ EXPOSE 8081
35
32
36
33
# Set Environment Variables
37
34
ENV PYTHONPATH=/opt/stage0_mongodb_api/stage0_mongodb_api
35
+ ENV MONGODB_API_PORT=8081
38
36
39
37
# Command to run the application using Gunicorn
40
- CMD exec gunicorn --bind 0.0.0.0:8081 --timeout 120 --preload stage0_mongodb_api.server:app
38
+ CMD exec gunicorn --bind 0.0.0.0:${MONGODB_API_PORT} --timeout 120 --preload stage0_mongodb_api.server:app
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ services:
26
26
# MongoDB configuration Service
27
27
# #################################
28
28
mongodb_api :
29
- image : ghcr.io/agile-learning-institute/stage0_mongo_api :latest
29
+ image : ghcr.io/agile-learning-institute/stage0_mongodb_api :latest
30
30
restart : no
31
31
ports :
32
32
- 8081:8081
@@ -35,6 +35,7 @@ services:
35
35
AUTO_PROCESS : False
36
36
LOAD_TEST_DATA : True
37
37
MONGO_DB_NAME : test_database
38
+ MONGODB_API_PORT : 8081
38
39
volumes :
39
40
- ${INPUT_FOLDER:-./tests/test_cases/large_sample}:/input
40
41
depends_on :
@@ -48,7 +49,7 @@ services:
48
49
image : ghcr.io/agile-learning-institute/stage0_mongodb_spa:latest
49
50
restart : no
50
51
environment :
51
- MONGODB_API_HOST : stage0_mongodb_api
52
+ MONGODB_API_HOST : mongodb_api
52
53
MONGODB_API_PORT : 8081
53
54
MONGODB_SPA_PORT : 8082
54
55
ports :
You can’t perform that action at this time.
0 commit comments