We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d9f2cb commit 787bb13Copy full SHA for 787bb13
Dockerfile
@@ -7,8 +7,11 @@ RUN apk upgrade --no-cache \
7
8
COPY ./configs/nginx.conf /etc/nginx/nginx.conf
9
COPY ./configs/default.conf /etc/nginx/conf.d/default.conf
10
+COPY ./configs/cmd.sh /root/cmd.sh
11
COPY ./build /usr/share/nginx/html/portal
12
COPY ./configs/redirect.html /usr/share/nginx/html/index.html
13
14
HEALTHCHECK --interval=30s --timeout=3s \
15
CMD curl -f http://localhost/ || exit 1
16
+
17
+CMD ["/bin/sh", "/root/cmd.sh"]
configs/cmd.sh
@@ -0,0 +1,6 @@
1
+if [ ! -z "$PSONO_PORTAL_CONFIG_JSON" ]
2
+then
3
+ echo "$PSONO_PORTAL_CONFIG_JSON" > /usr/share/nginx/html/portal/config.json
4
+fi
5
6
+nginx -g "daemon off;"
0 commit comments