summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-12-17 21:10:48 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-12-17 21:10:48 +0100
commit7f0a644f639e5e4ef9d6ed326df7b8ec833e7de4 (patch)
tree3a4e1437789bbc39cf3c0eb7d7af067b258461c5 /Dockerfile
parent4609b7312d67063b2cb0d5803260d7dc25475bc2 (diff)
set version via config
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile4
1 files changed, 1 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index e6e05db..f9b3d15 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -19,9 +19,7 @@ WORKDIR /app
RUN ln -sf ../ext-templates/imprint.html.ep templates/imprint.html.ep \
&& ln -sf ../ext-templates/privacy.html.ep templates/privacy.html.ep
-RUN find lib -name *.pm | xargs sed -i \
- -e "s/VERSION *= *.*;/VERSION = '${dbf_version}';/" \
- -e "s/dbf_version *= *.*;/dbf_version = '${dbf_version}';/"
+RUN sed -i "s/version => \$ENV{DBFAKEDISPLAY_VERSION}.*,/version => '${dbf_version}',/" lib/DBInfoscreen.pm
FROM perl:5.30-slim