-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
31 lines (24 loc) · 857 Bytes
/
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
FROM php:8.3-apache
RUN apt-get update && apt-get install --no-install-recommends -y \
libfreetype6-dev \
libmcrypt-dev \
libonig-dev
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/bin/install-php-extensions
RUN apt-get update && apt-get install --no-install-recommends -y \
libfreetype6-dev \
libmcrypt-dev \
libonig-dev \
&& rm -rf /var/lib/apt/lists/*
# Install default PHP Extensions
RUN install-php-extensions \
memcached \
memcache \
gd \
opcache
RUN rm -rf /var/lib/apt/lists/*
RUN rm -rf /var/cache/apt
COPY /app /var/www/html
COPY /apache/vhost.conf /etc/apache2/sites-available/000-default.conf
RUN chown -R www-data:www-data /var/www/html && a2enmod rewrite && service apache2 restart
EXPOSE 80
CMD ["apachectl", "-D", "FOREGROUND"]