add container healthcheck
All checks were successful
Docker Build / Build and Push Images (push) Successful in 35s
All checks were successful
Docker Build / Build and Push Images (push) Successful in 35s
This commit is contained in:
parent
f48d752899
commit
7535d8bb03
1 changed files with 4 additions and 0 deletions
|
@ -7,9 +7,13 @@ COPY README.md README.md
|
||||||
COPY requirements.txt requirements.txt
|
COPY requirements.txt requirements.txt
|
||||||
COPY LICENSE LICENSE
|
COPY LICENSE LICENSE
|
||||||
|
|
||||||
|
RUN apk add --no-cache curl
|
||||||
|
|
||||||
RUN python -m pip install --upgrade pip
|
RUN python -m pip install --upgrade pip
|
||||||
RUN python -m pip install --no-cache-dir -r requirements.txt
|
RUN python -m pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
CMD ["python", "src/main.py"]
|
CMD ["python", "src/main.py"]
|
||||||
|
|
||||||
|
HEALTHCHECK --interval=1m --timeout=30s --start-period=10s --retries=3 CMD curl -f http://localhost:80 || exit 1
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
Loading…
Reference in a new issue