summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile14
1 files changed, 8 insertions, 6 deletions
diff --git a/Dockerfile b/Dockerfile
index 90119d9..210893b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,3 +1,7 @@
+# Copyright (C) 2020 Birte Kristina Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
# docker build -t db-fakedisplay:latest --build-arg=dbf_version=$(git describe --dirty) .
FROM debian:buster-slim as files
@@ -15,16 +19,14 @@ 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
+FROM perl:5.40-slim
ARG DEBIAN_FRONTEND=noninteractive
ARG APT_LISTCHANGES_FRONTEND=none
-COPY cpanfile /app/cpanfile
+COPY cpanfile* /app/
WORKDIR /app
RUN apt-get update \
@@ -35,7 +37,7 @@ RUN apt-get update \
libc6-dev \
libdb5.3 \
libdb5.3-dev \
- libssl1.1 \
+ libssl3 \
libssl-dev \
libxml2 \
libxml2-dev \