-
-
Notifications
You must be signed in to change notification settings - Fork 64
Expand file tree
/
Copy pathDockerfile
More file actions
66 lines (54 loc) · 1.44 KB
/
Dockerfile
File metadata and controls
66 lines (54 loc) · 1.44 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
FROM alpine:3.23.2
LABEL maintainer="JulianPrieber"
LABEL description="LinkStack Docker"
EXPOSE 80 443
# Setup apache and php
RUN apk --no-cache --update \
add apache2 \
apache2-ssl \
curl \
php83-apache2 \
php83-bcmath \
php83-bz2 \
php83-calendar \
php83-common \
php83-ctype \
php83-curl \
php83-dom \
php83-fileinfo \
php83-gd \
php83-iconv \
php83-json \
php83-mbstring \
php83-mysqli \
php83-mysqlnd \
php83-openssl \
php83-pdo_mysql \
php83-pdo_pgsql \
php83-pdo_sqlite \
php83-phar \
php83-session \
php83-xml \
php83-tokenizer \
php83-zip \
php83-xmlwriter \
php83-redis \
tzdata \
&& mkdir /htdocs
COPY linkstack /htdocs
COPY configs/apache2/httpd.conf /etc/apache2/httpd.conf
COPY configs/apache2/ssl.conf /etc/apache2/conf.d/ssl.conf
COPY configs/php/php.ini /etc/php83/conf.d/40-custom.ini
RUN chown apache:apache /etc/ssl/apache2/server.pem
RUN chown apache:apache /etc/ssl/apache2/server.key
RUN chown -R apache:apache /htdocs
RUN find /htdocs -type d -print0 | xargs -0 chmod 0755
RUN find /htdocs -type f -print0 | xargs -0 chmod 0644
COPY --chmod=0755 docker-entrypoint.sh /usr/local/bin/
RUN chmod -R 755 /etc/php83 && \
chown -R apache:apache /etc/php83
USER apache:apache
HEALTHCHECK CMD curl -f http://localhost -A "HealthCheck" || exit 1
# Set console entry path
WORKDIR /htdocs
CMD ["docker-entrypoint.sh"]