Delete skib_application_dockerfile
This commit is contained in:
parent
bdf44c24c7
commit
f4567b8a00
1 changed files with 0 additions and 54 deletions
|
@ -1,54 +0,0 @@
|
|||
FROM git.h2-invent.com/public-system-design/alpine-php8-cron-webserver:3.20.7
|
||||
ARG VERSION=development
|
||||
|
||||
LABEL version="${VERSION}" \
|
||||
Maintainer="H2 invent GmbH" \
|
||||
Description="Docker Image der Anwendung Unsere Schulkindbetreuung" \
|
||||
org.opencontainers.version="${VERSION}" \
|
||||
org.opencontainers.image.title="Unsere Schulkindbetreuung" \
|
||||
org.opencontainers.image.license="INTERNAL" \
|
||||
org.opencontainers.image.vendor="H2 invent GmbH" \
|
||||
org.opencontainers.image.authors="Andreas Holzmann <support@h2-invent.com>" \
|
||||
org.opencontainers.image.source="https://github.com/h2-invent/skb" \
|
||||
org.opencontainers.image.documentation="https://unsere-schulkindbetreuung.de" \
|
||||
org.opencontainers.image.url="https://unsere-schulkindbetreuung.de"
|
||||
|
||||
USER root
|
||||
|
||||
RUN apk --no-cache add \
|
||||
unzip \
|
||||
php83-xmlwriter \
|
||||
php83-xsl \
|
||||
php83-pcntl \
|
||||
php83-posix \
|
||||
php83-sockets \
|
||||
php83-bcmath \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
RUN echo "Europe/Berlin" > /etc/timezone
|
||||
|
||||
RUN echo "# Docker Cron Jobs" > /var/crontab \
|
||||
&& echo "*/10 * * * * php /var/www/html/bin/console app:statistik:generate" >> /var/crontab \
|
||||
&& echo "" >> /var/crontab \
|
||||
&& chown nobody:nobody /var/crontab
|
||||
|
||||
RUN echo "#!/bin/sh" > /docker-entrypoint-init.d/02-symfony.sh \
|
||||
&& echo "php bin/console cache:clear" >> /docker-entrypoint-init.d/02-symfony.sh \
|
||||
&& echo "php bin/console doc:mig:mig --no-interaction" >> /docker-entrypoint-init.d/02-symfony.sh \
|
||||
&& echo "php bin/console cache:clear" >> /docker-entrypoint-init.d/02-symfony.sh \
|
||||
&& chmod +x /docker-entrypoint-init.d/02-symfony.sh
|
||||
|
||||
USER nobody
|
||||
|
||||
RUN wget https://github.com/H2-invent/skib-unsere-schulkindbetreuung/releases/download/${VERSION}/artifact.zip -O artifact.zip \
|
||||
&& unzip artifact.zip \
|
||||
&& mkdir data \
|
||||
&& mkdir -p var/log \
|
||||
&& mkdir -p var/cache \
|
||||
&& rm artifact.zip
|
||||
|
||||
ENV nginx_root_directory=/var/www/html/public \
|
||||
memory_limit=1024M \
|
||||
post_max_size=20M \
|
||||
upload_max_filesize=10M \
|
||||
date_timezone=Europe/Berlin
|
Loading…
Add table
Reference in a new issue