Dockerfile_Ubuntu aktualisiert
Some checks failed
release-tag / release-image (push) Failing after 7m19s
Some checks failed
release-tag / release-image (push) Failing after 7m19s
This commit is contained in:
@@ -1,29 +1,17 @@
|
||||
FROM ubuntu:latest
|
||||
|
||||
# Basis-System aktualisieren und benötigte Tools installieren
|
||||
RUN apt-get update && apt-get upgrade -y && \
|
||||
RUN apt-get update && apt-get upgrade -y
|
||||
RUN apt install -y bash autoconf automake make gcc g++ nginx redis-server
|
||||
RUN apt install -y php php-fpm php-opcache php-gd php-zlib php-curl php-bz2 php-bcmath php-exif php-fileinfo php-iconv php-imap php-intl php-ldap php-mbstring php-mysqli php-odbc php-pdo php-mysql php-odbc php-pgsql php-sqlite3 php-pear php-imagick php-memcache php-memcached php-mongodb php-redis php-smbclient php-ssh2 php-xdebug php-yaml php-phar php-phpdbg php-snmp php-soap php-sockets php-sodium php-sysvmsg php-tidy php-xml php-xmlreader php-xmlwriter php-xsl php-zip php-ctype php-tokenizer
|
||||
|
||||
# Konfigurationen kopieren (ggf. anpassen)
|
||||
COPY nginx /etc/nginx
|
||||
COPY php /etc/php
|
||||
COPY redis/redis.conf /etc/redis/redis.conf
|
||||
|
||||
# Laufverzeichnisse erstellen
|
||||
RUN mkdir -p /var/run/php
|
||||
|
||||
# Benutzer und Gruppen erstellen
|
||||
RUN groupadd -g 1001 swarmdocker && \
|
||||
useradd -u 3041 -g swarmdocker -s /bin/bash -m phpitop && \
|
||||
useradd -u 3040 -g swarmdocker -s /bin/bash -m nginxitop
|
||||
|
||||
# Ports freigeben
|
||||
RUN groupadd -g 1001 swarmdocker
|
||||
RUN useradd -u 3041 -g swarmdocker -s /bin/bash -m phpitop
|
||||
RUN useradd -u 3040 -g swarmdocker -s /bin/bash -m nginxitop
|
||||
EXPOSE 80
|
||||
EXPOSE 443
|
||||
EXPOSE 6379
|
||||
EXPOSE 9000
|
||||
|
||||
STOPSIGNAL SIGTERM
|
||||
|
||||
CMD bash -c "php-fpm && nginx -g 'daemon off;' && redis-server /etc/redis/redis.conf"
|
Reference in New Issue
Block a user