Skip to content

Commit

Permalink
build: fix Docker warnings, add composer.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
egoexpress committed Dec 25, 2024
1 parent f205a03 commit feab9b1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ LABEL description="Image for Known (withknown.com) using MySQL/MariaDB as backen
version="2024-12-15" \
authors="Bjoern Stierand <bjoern-known@innovention.de>"

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),
Expand Down Expand Up @@ -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 .

Expand Down

0 comments on commit feab9b1

Please # to comment.