-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (29 loc) · 1.21 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
ARG SYMFONY_PARAMS="--version=7.0.* --webapp"
FROM php:8.2-apache
#RUN apt update && apt install -y zip git curl && git config --global user.email "you@example.com" && git config --global user.name "Your Name"
RUN apt update && apt install -y \
libicu-dev \
libonig-dev \
libzip-dev \
zip \
unzip \
curl \
git \
&& git config --global user.email "you@example.com" && git config --global user.name "Your Name" \
&& docker-php-ext-configure intl \
&& docker-php-ext-install intl \
&& docker-php-ext-install mbstring \
&& docker-php-ext-install zip \
&& docker-php-ext-install pdo_mysql
RUN docker-php-ext-enable intl mbstring zip pdo_mysql
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
ENV COMPOSER_ALLOW_SUPERUSER=1
ENV SYMFONY_PARAMS_STD="--version=7.0.* --webapp"
RUN curl -1sLf 'https://dl.cloudsmith.io/public/symfony/stable/setup.deb.sh' | bash && apt install -y symfony-cli
COPY apache-default.conf /etc/apache2/sites-available/000-default.conf
WORKDIR /usr/src
VOLUME /usr/src
COPY ./docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["apache2-foreground"]