Skip to content

Commit 3c85de3

Browse files
committed
fastapi docker updates
1 parent cba67f1 commit 3c85de3

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ RUN poetry install --no-interaction --no-ansi
2424
# Set the working directory for running the application
2525
EXPOSE 8000
2626

27-
# Command to run the Flask application
27+
# Command to run the fastapi application
2828
CMD ["poetry", "run", "python", "src/server.py"]

compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
services:
2-
flask:
2+
fastapi:
33
build: .
44
container_name: cli-surf
55
hostname: cli-surf

src/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@ async def default_route(request: Request):
7878
datefmt="%Y-%m-%d %H:%M:%S",
7979
)
8080

81-
uvicorn.run(app, host=str(env.IP_ADDRESS), port=env.PORT)
81+
uvicorn.run(app, host="0.0.0.0", port=env.PORT)

0 commit comments

Comments
 (0)