From feab9b1e2f455889d664e62449e267b96555781d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stierand?= Date: Wed, 25 Dec 2024 09:57:57 +0100 Subject: [PATCH] build: fix Docker warnings, add composer.lock --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8acfe1d..02ed972 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,9 +8,9 @@ LABEL description="Image for Known (withknown.com) using MySQL/MariaDB as backen version="2024-12-15" \ authors="Bjoern Stierand " -ENV branch dev -ENV known_url https://codeload.github.com/idno/known/tar.gz/${branch} -ENV DEBIAN_FRONTEND noninteractive +ENV branch=dev +ENV known_url=https://codeload.github.com/idno/known/tar.gz/${branch} +ENV DEBIAN_FRONTEND=noninteractive # Install Apache and extensions # [Known PHP depepndencies](http://docs.withknown.com/en/latest/install/requirements.html), @@ -60,12 +60,13 @@ RUN mkdir -p /var/www/known \ # Configure Apache COPY apache2/sites-available/known.conf /etc/apache2/sites-available/ COPY files/composer.json /var/www/known +COPY files/composer.lock /var/www/known # Configure Known WORKDIR /var/www/known # This adds a unique file that changes when the branch changes for cache busting -ADD https://api.github.com/repos/idno/known/git/refs/heads/$BRANCH version.json +ADD https://api.github.com/repos/idno/known/git/refs/heads/$branch version.json COPY config.ini .