generated from Start9Labs/hello-world-startos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
22 lines (16 loc) · 1.02 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ghcr.io/itchysats/itchysats/taker:0.7.0@sha256:0c29162897a6c2bc2093373306f920400a0718960e1e4b1d80bd44beb485a498 as builder
## TODO: It would be simpler to use our container, but it is based on distroless - which is great because it's slim, but it does not have any shell support
## Can use busybox to copy necessary functionality in, but could not fix depednency on `dev/stdin` for the health_check
## Use bullseye instead of buster because we need glibc >2.29 available, bullseye is released since 10.09.2022
FROM debian:bullseye-slim
COPY --from=builder /usr/bin/binary /bin/itchysats
RUN apt update && apt install -y wget
RUN wget https://github.com/mikefarah/yq/releases/download/v4.23.1/yq_linux_arm.tar.gz -O - |\
tar xz && mv yq_linux_arm /usr/bin/yq
ADD ./docker_entrypoint.sh /usr/local/bin/docker_entrypoint.sh
ADD ./health-check.sh /usr/local/bin/health-check.sh
RUN chmod a+x /usr/local/bin/docker_entrypoint.sh
RUN chmod a+x /usr/local/bin/health-check.sh
VOLUME /data
EXPOSE 8000
ENTRYPOINT ["docker_entrypoint.sh"]