-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (24 loc) · 873 Bytes
/
Dockerfile
File metadata and controls
34 lines (24 loc) · 873 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
32
33
# Use the official PHP-FPM image as the base image
FROM php:8.1-fpm-alpine
# # Copy Frontend
COPY /html /var/www/html
WORKDIR /var/www/html
COPY entrypoint.sh /etc/entrypoint.sh
COPY /nginx/nginx.conf /etc/nginx/nginx.conf
COPY /nginx/default.conf /etc/nginx/conf.d/default.conf
# Copy custom PHP-FPM configuration
COPY php/php-fpm.conf /usr/local/etc/php-fpm.conf
#COPY php/www.conf /usr/local/etc/php-fpm.d/www.conf
RUN apk update \
&& chmod +x /etc/entrypoint.sh \
&& apk add nginx \
&& apk add composer \
&& apk add python3 \
&& apk add --no-cache libssh2-dev \
&& apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
&& apk del .build-deps \
&& composer require php-http/guzzle7-adapter google/auth \
&& docker-php-ext-install mysqli
EXPOSE 80 443
#CMD ["tail", "-f", "/dev/null"]
ENTRYPOINT ["/etc/entrypoint.sh"]