This repository was archived by the owner on Jan 1, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +17
-7
lines changed Expand file tree Collapse file tree 3 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,6 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
9
9
# Environment settings
10
10
ENV HOME="/config"
11
11
12
- # copy local files
13
- COPY root/ /
14
-
15
12
# install build dependencies
16
13
RUN \
17
14
apk add --no-cache --virtual=build-dependencies \
60
57
libstdc++ \
61
58
libusb \
62
59
libusb-compat \
60
+ openssl \
63
61
zlib && \
64
62
65
63
# add abc to dialout and cron group trying to fix different GID for dialout group
70
68
rm -rf \
71
69
/tmp/*
72
70
71
+ # copy local files
72
+ COPY root/ /
73
+
73
74
# ports and volumes
74
75
EXPOSE 8080 6144 1443
75
76
76
- VOLUME /config
77
+ VOLUME /config
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/with-contenv bash
2
2
3
+ # make our folders
4
+ mkdir -p \
5
+ /config/keys
6
+
3
7
# copy default scripts from install
4
8
[[ ! -e /config/scripts ]] && \
5
9
cp -R /opt/domoticz/scripts /config/
6
10
7
11
# copy default ssl certificate
8
- [[ ! -e /config/server_cert.pem ]] && \
9
- cp /opt/domoticz/server_cert.pem /config/server_cert.pem
12
+ if [ ! -e /config/keys/server_cert.pem ]; then
13
+ openssl dhparam -out /config/keys/RSA2048.pem -5 2048
14
+ openssl req -x509 -nodes -days 365 \
15
+ -newkey rsa:4096 -keyout /config/keys/server_cert.pem -out /config/keys/server_cert.pem \
16
+ -subj "/CN=domoticz"
17
+ cat /config/keys/RSA2048.pem >> /config/keys/server_cert.pem
18
+ fi
10
19
11
20
# set permissions for /config
12
21
chown -R abc:abc \
Original file line number Diff line number Diff line change 2
2
exec \
3
3
s6-setuidgid abc /opt/domoticz/domoticz \
4
4
-sslwww 1443 \
5
- -sslcert /config/server_cert.pem \
5
+ -sslcert /config/keys/ server_cert.pem \
6
6
-userdata /config/ \
7
7
-dbase /config/domoticz.db \
8
8
-syslog
You can’t perform that action at this time.
0 commit comments