Skip to content

Commit ac5912f

Browse files
committed
fix(dockerfile-linux): simplify the example configuration step
1 parent c933832 commit ac5912f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Dockerfile-linux.template

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,9 @@ RUN set -eux; \
114114
# example configuration
115115
RUN set -eux; \
116116
python -c 'import urllib.request; urllib.request.urlretrieve("https://github.com/IdentityPython/SATOSA/archive/refs/tags/v'${SATOSA_VERSION%%[a-z]*}'.tar.gz","/tmp/satosa.tgz")'; \
117-
mkdir /tmp/satosa; \
118-
tar --extract --directory /tmp/satosa --strip-components=1 --file /tmp/satosa.tgz; \
119-
rm /tmp/satosa.tgz; \
120-
mkdir -p /usr/share/satosa; \
121-
cp -a /tmp/satosa/example /usr/share/satosa; \
122-
rm -rf /tmp/satosa
117+
mkdir /usr/share/satosa; \
118+
tar --extract --directory /usr/share/satosa --strip-components=1 --file /tmp/satosa.tgz SATOSA-${SATOSA_VERSION%%[a-z]*}/example/; \
119+
rm /tmp/satosa.tgz
123120

124121
WORKDIR /etc/satosa
125122

0 commit comments

Comments
 (0)