Skip to content

Commit 6fa1902

Browse files
authored
fix: app running command (keploy#12)
Signed-off-by: Animesh pathak <kurosakiichigo.songoku@gmail.com>
1 parent d1c9efb commit 6fa1902

File tree

5 files changed

+1336
-8
lines changed

5 files changed

+1336
-8
lines changed

fastapi-postgres/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ RUN pip install --no-cache-dir -r requirements.txt
1414
COPY . .
1515

1616
# Set environment variables for PostgreSQL
17-
ENV POSTGRES_USER=postgres \
18-
POSTGRES_PASSWORD=postgres \
19-
POSTGRES_DB=studentdb \
20-
POSTGRES_HOST=0.0.0.0 \
21-
POSTGRES_PORT=5432
17+
# ENV POSTGRES_USER=postgres \
18+
# POSTGRES_PASSWORD=postgres \
19+
# POSTGRES_DB=studentdb \
20+
# POSTGRES_HOST=0.0.0.0 \
21+
# POSTGRES_PORT=5432
2222

2323
# Install PostgreSQL client
2424
RUN apt-get update && apt-get install -y postgresql-client
@@ -27,4 +27,4 @@ RUN apt-get update && apt-get install -y postgresql-client
2727
EXPOSE 8000
2828

2929
# Start the FastAPI application
30-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
30+
CMD ["uvicorn", "application.main:app", "--host", "0.0.0.0", "--port", "8000"]

0 commit comments

Comments
 (0)