17 lines
647 B
Docker
17 lines
647 B
Docker
FROM ubuntu:latest
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
ENV TZ=Europe/Berlin
|
|
|
|
RUN mkdir /home/composer
|
|
RUN apt-get update -y --fix-missing && apt-get upgrade -y
|
|
RUN apt install -y software-properties-common
|
|
RUN add-apt-repository -y ppa:ondrej/php
|
|
RUN apt-get install -y composer php8.2 php-mbstring php-xml php-mysql php-fpm php-gd php-zip php-intl php8.2-intl php8.2-xml php8.2-pdo php8.2-mysql wget apache2
|
|
RUN wget https://get.symfony.com/cli/installer -O - | bash
|
|
COPY ./symfony-httpd.conf /etc/apache2/sites-available/000-default.conf
|
|
RUN a2enmod rewrite
|
|
RUN service apache2 restart
|
|
ENV PATH="/root/.symfony5/bin:$PATH".
|
|
WORKDIR /var/www/app
|