Skip to content

Commit 0545bc4

Browse files
committed
Add local_pip source and add healthcheck.
1 parent d882ca3 commit 0545bc4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
# application directory
1414
ARG appdir=/usr/src/app
1515

16-
# support roundup install from 'local' directory or from 'pypi'
16+
# support roundup install from 'local' directory,
17+
# 'local_pip' local directory using pip to install or
18+
# latest release from 'pypi'
1719
ARG source=local
1820

1921
FROM python:3-alpine as build
@@ -100,6 +102,9 @@ EXPOSE 8080/tcp
100102
RUN mkdir tracker
101103
VOLUME $appdir/tracker
102104

105+
HEALTHCHECK --start-period=1m \
106+
CMD wget -q -O /dev/null --no-verbose http://localhost:8080/issues/
107+
103108
# do not run roundup as root
104109
RUN adduser -D -h /usr/src/app roundup
105110
USER roundup

0 commit comments

Comments
 (0)