Skip to content

Commit f57b6f3

Browse files
committed
docker: Cleanup, add health check
1 parent c311030 commit f57b6f3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ FROM rustlang/rust:nightly
33
WORKDIR /usr/srv/hpkgbouncer
44
COPY . .
55

6-
RUN cargo install --path .
6+
RUN cargo install --path . \
7+
&& rm -rf *
78

89
CMD ["hpkgbouncer"]
10+
11+
HEALTHCHECK --start-period=5m CMD curl --fail http://`hostname`:8000/ || exit 1

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
default:
2+
cargo clean
23
docker build --no-cache --tag docker.io/haiku/hpkgbouncer:0.2.0 .
34
push:
45
docker push docker.io/haiku/hpkgbouncer:0.2.0

0 commit comments

Comments
 (0)