-
Notifications
You must be signed in to change notification settings - Fork 7
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
Showing
2 changed files
with
12 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
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,14 @@ | ||
FROM alpine:3.15 | ||
|
||
RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/* | ||
RUN apk update && apk add ca-certificates curl && rm -rf /var/cache/apk/* | ||
|
||
ENV GIN_MODE=release | ||
|
||
EXPOSE 8080/tcp | ||
|
||
HEALTHCHECK --interval=30s --timeout=30s --retries=3 \ | ||
CMD curl -f http://localhost:8080/api/v1/healthz | ||
|
||
COPY gose / | ||
|
||
ENTRYPOINT ["/gose"] |