-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
45 lines (33 loc) · 1.21 KB
/
Dockerfile
File metadata and controls
45 lines (33 loc) · 1.21 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
FROM ghcr.io/rollun-lc/rollun-ops/base-images/php-fpm-8.1
USER root
# Install reuired system utils
RUN apt-get update \
&& apt-get install -y iputils-ping \
iproute2 \
libyaml-dev \
wget \
openjdk-17-jre
# Install openapi-generator jar
RUN mkdir /usr/local/share/java
RUN wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.9.0/openapi-generator-cli-7.9.0.jar \
-O /usr/local/share/java/openapi-generator-cli.jar
# Create 'openapi-generator' alias
COPY ./openapi-generator /usr/local/bin/openapi-generator
RUN chmod +x /usr/local/bin/openapi-generator
# Install YAML extension
RUN pecl install yaml-2.2.2 && echo "extension=yaml.so" > /usr/local/etc/php/conf.d/ext-yaml.ini
# Install xdebug
RUN pecl install xdebug-3.4.2 && docker-php-ext-enable xdebug
# Script to wait a port
COPY ./wait-for-it.sh /usr/local/bin/wait-for-it
RUN chmod 555 /usr/local/bin/wait-for-it
# php configs
COPY ./php-fpm.conf /usr/local/etc/php-fpm.conf
COPY ./conf.d /usr/local/etc/php/conf.d
# GID and UID mapping for www-data user
ARG WWW_DATA_UID=33
ARG WWW_DATA_GID=33
RUN usermod -u $WWW_DATA_UID www-data && groupmod -g $WWW_DATA_GID www-data
USER www-data
WORKDIR /var/www/app
CMD ["php-fpm", "-R"]