Skip to content

Commit e9bf7be

Browse files
committed
added the wait for postgres to docker image
1 parent 3860d7c commit e9bf7be

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@ RUN pip install --no-cache-dir -r requirements.txt
66

77
COPY . .
88

9+
COPY wait-for-postgres.sh /app/wait-for-postgres.sh
10+
RUN chmod +x /app/wait-for-postgres.sh
11+
912
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]

0 commit comments

Comments
 (0)