Skip to content

Commit ddd4bf0

Browse files
Update Dockerfile and gunicorn configuration to expose port 4000 and change welcome message in main route
1 parent 8ea8fa4 commit ddd4bf0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

api/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ RUN pip install --no-cache-dir -r requirements.txt
1313
WORKDIR /app
1414
COPY . .
1515

16-
# Expose port 3000
17-
EXPOSE 3000
16+
# Expose port 4000
17+
EXPOSE 4000
1818

1919
# Run the web service on container startup
2020
CMD ["gunicorn", "-c", "gunicorn_config.py", "main:app"]

api/gunicorn_config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
bind = "0.0.0.0:3000"
1+
bind = "0.0.0.0:4000"
22
workers = 4

api/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484

8585
@app.route('/')
8686
def home():
87-
return "Welcome to the Flask App"
87+
return "Welcome to the CAS API"
8888

8989
@app.route('/push', methods=['POST'])
9090
def add_article():

0 commit comments

Comments
 (0)