-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.Dockerfile
More file actions
31 lines (26 loc) · 960 Bytes
/
server.Dockerfile
File metadata and controls
31 lines (26 loc) · 960 Bytes
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
ARG dir_to_copy='.'
COPY --chown=www-data:www-data ${dir_to_copy} /var/www/html
COPY --chown=www-data:www-data php.ini /usr/local/etc/php/conf.d/
RUN --mount=type=cache,target=/var/cache/apt \
apt-get update && apt-get install -y \
cron \
libjpeg-dev \
libfreetype6-dev \
libpng-dev \
libssl-dev \
libonig-dev \
libzip-dev \
libicu-dev \
ssmtp \
zip && \
rm -rf /var/lib/apt/lists/* && \
docker-php-ext-configure gd --with-freetype=/usr --with-jpeg=/usr && \
docker-php-ext-configure intl && \
docker-php-ext-install gd mbstring pdo_mysql zip ftp intl && \
a2enmod rewrite && a2enmod headers && \
service apache2 restart && \
crontab -l | { cat; echo '* * * * * curl localhost/ow_cron/run.php'; } | crontab - && \
cron
EXPOSE 80
ENTRYPOINT ["sh", "-c", "mkdir /var/www/html/ow_smarty/template_c && apache2-foreground"]