Skip to content

Commit 8933afb

Browse files
author
Simon Jakesch
committed
changing port from 3500 to 8080 and aligning message to point to /albums
1 parent 8db9794 commit 8933afb

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

src/Dockerfile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
21
FROM python:3.9
3-
42
WORKDIR /code
5-
63
COPY ./requirements.txt /code/requirements.txt
7-
84
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
9-
105
COPY ./app /code/app
11-
12-
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "3500"]
6+
EXPOSE 8080
7+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8080"]

src/app/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(self, id, title, artist, price, image_url):
3232

3333
@app.get("/")
3434
def read_root():
35-
return {"Azure Container Apps Python Sample API"}
35+
return {"Access /albums to see the list of albums"}
3636

3737

3838
@app.get("/albums")

0 commit comments

Comments
 (0)