-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
42 lines (35 loc) · 830 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
32
33
34
35
36
37
38
39
40
41
42
# syntax=docker/dockerfile:1
FROM alpine:3.17
LABEL maintainer="[email protected]"
LABEL description="Alpine based image with apache2 and php8"
# Setup apache and php
RUN apk --no-cache --update \
add apache2 \
curl \
php-apache2 \
php-bcmath \
php-bz2 \
php-calendar \
php-common \
php-ctype \
php-curl \
php-dom \
php-gd \
php-iconv \
php-mbstring \
php-mysqli \
php-mysqlnd \
php-openssl \
php-pdo_mysql \
php-pdo_pgsql \
php-pdo_sqlite \
php-phar \
php-session \
php-xml \
&& mkdir /htdocs
EXPOSE 80
VOLUME /htdocs
ADD docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh
HEALTHCHECK --interval=30s --timeout=3s --retries=3 CMD curl -X GET --fail http://localhost:80 || exit 1
ENTRYPOINT ["/docker-entrypoint.sh"]