webserver-zioone/dockerfile

51 lines
1.2 KiB
Plaintext
Raw Normal View History

2023-02-19 20:57:29 +01:00
# Grundlegendes Image
FROM alpine:latest
# Informationen
MAINTAINER Dany Thinnes <dany@projekt-hirnfrei.de>
# Freigaben
EXPOSE 80
# Alles aktualisieren
RUN apk add --upgrade apk-tools
RUN apk upgrade --available
# Apache2 und PHP installieren
RUN apk add --no-cache apache2
RUN apk add --no-cache php-apache2
RUN rm /var/www/localhost/htdocs/*
# Abhängigkeiten installieren
RUN apk add --no-cache php-openssl
RUN apk add --no-cache php-curl
RUN apk add --no-cache php-calendar
RUN apk add --no-cache php-gd
RUN apk add --no-cache php-pgsql
RUN apk add --no-cache php-soap
RUN apk add --no-cache php-sodium
RUN apk add --no-cache php-session
RUN apk add --no-cache php-iconv
RUN apk add --no-cache php-zip
RUN apk add --no-cache php-simplexml
RUN apk add --no-cache php-fpm
RUN apk add --no-cache php-mbstring
RUN apk add --no-cache php-ctype
RUN apk add --no-cache php-xmlwriter
RUN apk add --no-cache msmtp
# Postgresql installieren
RUN apk add --no-cache postgresql
RUN (addgroup -S postgres && adduser -S postgres -G postgres || true)
RUN mkdir /run/postgresql
RUN chown -R postgres:postgres /run/postgresql
# Konfigurationen kopieren
COPY etc/. /etc
# Workdir anlegen und Start-Skript kopieren
RUN mkdir /work
# starten
ENTRYPOINT ["/work/entrypoint.sh"]