File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
docker/rootfs/etc/cont-init.d Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
- FROM jc21/alpine-nginx-full:node
1
+ FROM --platform=${TARGETPLATFORM:-linux/amd64} jc21/alpine-nginx-full:node
2
2
LABEL maintainer=
"Jamie Curnow <[email protected] >"
3
3
4
4
ENV SUPPRESS_NO_CONFIG_WARNING=1
Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ for FILENAME in $(find /var/run/s6/container_environment/ | grep "__FILE$"); do
19
19
20
20
# ... and set value to contents of secretfile
21
21
# since s6 uses text files, this is effectively "export ..."
22
- cat $( ${SECRETFILE} | xargs) > ${STRIPFILE}
22
+ # cat ${SECRETFILE} > ${STRIPFILE}
23
+ cat $( ${SECRETFILE} | sed " s/[^\w.-]+//g" ) > ${STRIPFILE}
23
24
echo " [secret-init] Set ${STRIPFILE} to $( cat ${STRIPFILE} ) " # DEBUG - rm for prod!"
24
25
echo " [secret-init] Success! ${STRIPFILE} set from ${FILENAME} "
25
26
You can’t perform that action at this time.
0 commit comments