-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (17 loc) · 682 Bytes
/
Dockerfile
File metadata and controls
29 lines (17 loc) · 682 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM docker.io/rust:1.80-alpine3.20 AS builder
RUN apk --update add --no-cache musl-dev
WORKDIR /usr/src/feedlynx
COPY . .
RUN cargo build --release --locked
FROM alpine:3.20
ENV FEEDLYNX_ADDRESS=0.0.0.0
HEALTHCHECK --interval=5m --timeout=3s --start-period=5s --retries=3 \
CMD wget -q \
--header 'Content-Type: application/x-www-form-urlencoded' \
--post-data "token=$FEEDLYNX_PRIVATE_TOKEN" \
-O - \
"${FEEDLYNX_ADDRESS}:${FEEDLYNX_PORT:-8001}/info" | grep -q '"status":"ok"' || exit 1
RUN mkdir -p /data
COPY --from=builder /usr/src/feedlynx/target/release/feedlynx /usr/local/bin/feedlynx
VOLUME ["/data"]
ENTRYPOINT ["/usr/local/bin/feedlynx"]