-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ddb71c7
commit ac2a9b9
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
FROM alpine:latest | ||
COPY oneget / | ||
RUN set -x; \ | ||
chmod +x /oneget | ||
chmod +x /oneget; \ | ||
apk add curl | ||
ENV ONEGET_HTTP_SERVER_PORT=8080 | ||
ENV ONEGET_ENABLE_HTTP_SERVER=true | ||
HEALTHCHECK --interval=1m --timeout=3s \ | ||
CMD nc -vz -w 2 localhost $ONEGET_HTTP_SERVER_PORT || exit 1' | ||
CMD nc -vz -w 2 localhost $ONEGET_HTTP_SERVER_PORT || exit 1 | ||
ENTRYPOINT ["/oneget"] |