34 lines
886 B
Plaintext
34 lines
886 B
Plaintext
from ubuntu:focal
|
|
MAINTAINER patrick@neurohr-it.de
|
|
LABEL Description="Koha Testing Patrick" Vendor="Patrick" Version="0.1"
|
|
|
|
#install useful tools
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
ENV TZ=Europe/Berlin
|
|
|
|
RUN apt-get update
|
|
RUN apt-get install -y tzdata
|
|
RUN apt-get -y install wget gnupg git
|
|
|
|
#add koha repository
|
|
#RUN echo deb http://debian.koha-community.org/koha stable main | tee /etc/apt/sources.list.d/koha.list
|
|
#RUN wget -O- http://debian.koha-community.org/koha/gpg.asc | apt-key add -
|
|
#RUN apt-get update
|
|
|
|
# Install Apache2 + php
|
|
RUN apt-get -y install apache2 php libapache2-mod-php
|
|
|
|
#enable System-Services
|
|
RUN update-rc.d apache2 enable
|
|
|
|
#test-git-clone
|
|
RUN mkdir -p /git
|
|
|
|
RUN git clone https://git.neurohr-it.de/pat/koha-docker.git /git
|
|
RUN cp /git/phpinfo.php /var/www/html/phpinfo.php
|
|
|
|
#Ports rausreichen
|
|
EXPOSE 80 3306
|
|
|
|
#ENTRYPOINT
|
|
ENTRYPOINT [ "/git/mystart-script.sh" ] |