Update to 24.04, solves deployment issue
parent
b4e480c107
commit
b53c3875a2
16
Dockerfile
16
Dockerfile
|
@ -1,4 +1,4 @@
|
|||
FROM ubuntu:22.04
|
||||
FROM ubuntu:24.04
|
||||
|
||||
# Instalar Nginx
|
||||
RUN apt-get update && apt-get install -y nginx software-properties-common curl unzip supervisor
|
||||
|
@ -14,7 +14,7 @@ RUN ln -sf /dev/stdout /var/log/nginx/access.log \
|
|||
|
||||
|
||||
# Copia la configuración personalizada de Nginx al contenedor
|
||||
COPY ./docker/nginx/default.conf /etc/nginx/sites-available/oggit
|
||||
COPY ./docker/nginx/default.conf /etc/nginx/sites-available/oggit
|
||||
|
||||
# Borrar default.conf en nginx en caso de que exista
|
||||
RUN rm /etc/nginx/sites-enabled/default
|
||||
|
@ -26,33 +26,33 @@ RUN ln -s /etc/nginx/sites-available/oggit /etc/nginx/sites-enabled/oggit
|
|||
|
||||
RUN apt-get install -y php8.2 php8.2-cli php8.2-fpm php8.2-xml php8.2-curl
|
||||
|
||||
# Install composer
|
||||
# Install composer
|
||||
|
||||
RUN curl -sS https://getcomposer.org/installer -o composer-setup.php && php composer-setup.php --install-dir=/usr/local/bin --filename=composer
|
||||
|
||||
|
||||
# Crear directorio de trabajo
|
||||
# Crear directorio de trabajo
|
||||
RUN mkdir /opt/oggit
|
||||
RUN mkdir -p /var/www/.composer && chown -R www-data:www-data /var/www
|
||||
|
||||
|
||||
WORKDIR /opt/oggit
|
||||
# Copy the project to /opt/oggit
|
||||
COPY src/ src/
|
||||
COPY src/ src/
|
||||
COPY config/ config/
|
||||
COPY composer.json .
|
||||
|
||||
# Install dependencies
|
||||
RUN composer install
|
||||
COPY .env .env
|
||||
COPY .env .env
|
||||
RUN chown -R www-data:www-data /opt/oggit
|
||||
|
||||
# Configure Supervisor
|
||||
COPY docker/supervisord/supervisor.conf /etc/supervisor/conf.d/supervisor.conf
|
||||
# Iniciar Nginx
|
||||
# Iniciar Nginx
|
||||
COPY docker/entrypoint/entrypoint.sh /entrypoint.sh
|
||||
|
||||
# Cambiar los permisos de entrypoint.sh
|
||||
# Cambiar los permisos de entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
RUN mkdir -p /run/php && chown -R www-data:www-data /run/php
|
||||
|
||||
|
|
Loading…
Reference in New Issue