-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
executable file
·33 lines (27 loc) · 962 Bytes
/
Dockerfile
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
ARG ARCH=
FROM alpine:20240807
ENV VERSION=1.5.0
ENV MYCONTROLLER_URL="https://github.com/mycontroller-org/mycontroller/releases/download/${VERSION}.Final/mycontroller-dist-standalone-${VERSION}-bundle.tar.gz"
LABEL \
org.label-schema.maintainer="me codar nl" \
org.label-schema.name="mycontroller" \
org.label-schema.description="Mycontroller running on Alpine Linux" \
org.label-schema.version="${VERSION}" \
org.label-schema.vcs-url="https://github.com/githubcdr/docker-mycontroller" \
org.label-schema.schema-version="1.0"
# pin to /tmp
WORKDIR /tmp
# dependencies
RUN set -x \
&& apk add --update --no-cache s6 ca-certificates openjdk8-jre-base wget tzdata \
&& wget $MYCONTROLLER_URL -O mycontroller.tar.gz \
&& tar zxf mycontroller.tar.gz -C /usr/local \
&& rm -f /tmp/*
# add files
COPY files/root/ /
# fixes
RUN chmod +x /service/*/run
# expose mqtt and web
EXPOSE 1883/tcp 8443/tcp
# launch s6
ENTRYPOINT ["/bin/s6-svscan","/service"]