-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (29 loc) · 920 Bytes
/
Copy pathDockerfile
File metadata and controls
39 lines (29 loc) · 920 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
30
31
32
33
34
35
36
37
38
39
FROM ghcr.io/binhex/arch-base:latest
LABEL org.opencontainers.image.authors="binhex"
LABEL org.opencontainers.image.source="https://github.com/binhex/arch-devel"
# app name from buildx arg
ARG APPNAME
# release tag name from buildx arg
ARG RELEASETAG
# arch from buildx --platform, e.g. amd64
ARG TARGETARCH
# additional files
##################
# add install bash script
ADD build/root/*.sh /root/
# healthcheck
#############
# ensure internet connectivity, used primarily when sharing network with other containers
HEALTHCHECK \
--interval=2m \
--timeout=2m \
--retries=3 \
--start-period=2m \
CMD /usr/local/bin/system/scripts/docker/healthcheck.sh || exit 1
# install app
#############
# run bash script to update base image, set locale, install supervisor and cleanup
RUN chmod +x /root/*.sh && \
/bin/bash /root/install.sh "${APPNAME}" "${RELEASETAG}" "${TARGETARCH}"
# run bash
CMD ["/bin/bash"]