-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPHP8-1.Dockerfile
44 lines (35 loc) · 1.31 KB
/
PHP8-1.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
43
44
# Prepare Alpine image for Go installation
FROM golang:alpine as golang
# Install
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories \
&& apk --update --no-cache add git \
&& go get -u github.com/fogleman/primitive
# Image is based on the the latest Alpine image
FROM alpine:edge
# Maintainer
LABEL maintainer="tollwerk GmbH <info@tollwerk.de>"
# Include primitive
COPY --from=golang /go/bin/primitive /usr/local/bin/primitive
# Copy install scripts & configuration files
COPY php/scripts /scripts
COPY php/config/* /scripts/
COPY .shared/config/php.ini /scripts/
# Install PHP and additional software
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories \
&& mkdir /www \
&& chmod 0755 /scripts/* \
&& apk --update --no-cache add bash \
&& /scripts/install.sh \
&& /scripts/install-php8.sh "8.1.8" \
&& /scripts/mozjpeg.sh "3.3.1" \
&& /scripts/webp.sh "1.0
&& /scripts/svgo.sh \
&& /scripts/finalize.sh \
&& mv /scripts/setup-ssmtp.sh /usr/local/bin \
&& rm -rf /var/cache/apk/* /scripts
# Expose port 9000
EXPOSE 9000
# Add default command
CMD ["php-fpm8", "-F"]
# https://github.com/ChrisB9/php8-xdebug/blob/main/php-dev-8.dockerfile
# https://github.com/eko/docker-symfony/blob/master/php-fpm/Dockerfile