diff --git a/Cargo.toml b/Cargo.toml index 14f5f00..1c7e96a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "libreddit" description = " Alternative private front-end to Reddit" license = "AGPL-3.0" repository = "https://github.com/spikecodes/libreddit" -version = "0.8.3" +version = "0.8.4" authors = ["spikecodes <19519553+spikecodes@users.noreply.github.com>"] edition = "2018" diff --git a/Dockerfile b/Dockerfile index 4d82c91..d71b3c1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,9 @@ RUN cargo install --path . FROM alpine:latest RUN apk add --no-cache curl COPY --from=builder /usr/local/cargo/bin/libreddit /usr/local/bin/libreddit +RUN adduser --system --home /nonexistent --no-create-home --disabled-password libreddit +USER libreddit EXPOSE 8080 HEALTHCHECK --interval=5m --timeout=3s CMD curl -f http://localhost:8080/settings || exit 1 + CMD ["libreddit"] \ No newline at end of file