-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (20 loc) · 1.11 KB
/
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
FROM php:8.3-fpm-alpine
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN apk add --no-cache --update wget openssh-client git zip curl nginx nodejs npm
RUN mkdir -p /app
RUN mkdir -p /app/public
RUN echo '<html><head><meta name="robots" content="noindex"></head><body><h1>Woohoo! :)</h1><h3>It works!</h3></body>' > '/app/public/index.php'
COPY .deployment/nginx.conf /etc/nginx/nginx.conf
COPY .deployment/php-opcache.ini /usr/local/etc/php/conf.d/opcache.ini
COPY .deployment/docker-php-memlimit.ini /usr/local/etc/php/conf.d/docker-php-memlimit.ini
COPY .deployment/startup.sh /startup.sh
RUN apk add --no-cache bind-tools \
&& ssh-keyscan github.com > /etc/ssh/ssh_known_hosts \
&& dig -t a +short github.com | grep ^[0-9] | xargs -r -n1 ssh-keyscan >> /etc/ssh/ssh_known_hosts \
&& apk del bind-tools
RUN chmod +x /usr/local/bin/install-php-extensions && \
IPE_GD_WITHOUTAVIF=1 install-php-extensions pdo_mysql exif pcntl bcmath redis soap gd opcache intl zip
RUN chown -R www-data: /app
WORKDIR /app
EXPOSE 8888
CMD sh /startup.sh