From 7f0a644f639e5e4ef9d6ed326df7b8ec833e7de4 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 17 Dec 2020 21:10:48 +0100 Subject: set version via config --- Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Dockerfile') 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 -- cgit v1.2.3