You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.2 KiB
32 lines
1.2 KiB
FROM registry.sindominio.net/debian |
|
|
|
# Instalar todos los módulos necesarios de PHP y programas necesarios para el script |
|
|
|
RUN apt-get update |
|
RUN apt-get -qy install php7.4 php-fpm php-mysql php-curl php-gd php-mbstring php-xml php-xmlrpc php-soap php-intl php-zip php-imagick php-json php-bz2 |
|
RUN apt-get install wget tar -y |
|
|
|
# Cómo hacer para que se actualice y descargue la última versión???? |
|
|
|
RUN wget https://download.nextcloud.com/server/releases/nextcloud-22.2.0.tar.bz2 |
|
RUN wget https://download.nextcloud.com/server/releases/nextcloud-22.2.0.tar.bz2.md5 |
|
|
|
# Verificar la firma y descomprimir el Nextcloud |
|
|
|
RUN md5sum --check nextcloud-22.2.0.tar.bz2.md5 |
|
RUN tar xvjf nextcloud-22.2.0.tar.bz2 |
|
|
|
# Adjuntar el archivo de configuración de los puertos para que no salga por el shocket sino que salga por el puerto 9000 |
|
|
|
COPY php-fpm.conf /etc/php/7.4/fpm/php-fpm.conf |
|
COPY www.conf /etc/php/7.4/fpm/pool.d/www.conf |
|
|
|
# Vamos a la carpeta nextcloud recien creada, ponemos el puerto y creamos un volume para indicar luego la base de datos |
|
|
|
WORKDIR nextcloud |
|
EXPOSE 9000 |
|
VOLUME /nextcloud/ |
|
|
|
ENTRYPOINT ["/bin/bash","/usr/local/bin/docker-entrypoint.sh"] |
|
|
|
CMD ["/usr/sbin/php-fpm7.4","--nodaemonize"]
|
|
|