-
Notifications
You must be signed in to change notification settings - Fork 413
Expand file tree
/
Copy pathDockerfile.development
More file actions
57 lines (48 loc) · 1.48 KB
/
Dockerfile.development
File metadata and controls
57 lines (48 loc) · 1.48 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
FROM almalinux:10-minimal
COPY .php-version .node-version /
RUN echo "install_weak_deps=False" >> /etc/dnf/dnf.conf && \
microdnf install -y epel-release && \
rpm -i https://rpm.henderkes.com/static-php-1-1.noarch.rpm && \
microdnf module enable -y php-zts:static-$(cat /.php-version) && \
(curl -fsSL https://rpm.nodesource.com/setup_$(cat /.node-version).x | bash -) && \
microdnf install -y \
chromedriver \
chromium \
ffmpeg-free \
frankenphp \
git \
libjpeg-turbo-utils \
mysql8.4 \
nodejs \
php-zts-cli \
php-zts-ds \
php-zts-fileinfo \
php-zts-ffi \
php-zts-ftp \
php-zts-gd \
php-zts-gettext \
php-zts-intl \
php-zts-mysqli \
php-zts-mysqlnd \
php-zts-pdo \
php-zts-pdo_mysql \
php-zts-pdo_sqlite \
php-zts-redis \
php-zts-shmop \
php-zts-sysvmsg \
php-zts-sysvsem \
php-zts-sysvshm \
php-zts-xsl \
php-zts-zip \
unzip \
util-linux && \
microdnf clean all
RUN corepack enable yarn
RUN curl -L "https://getcomposer.org/download/latest-2.x/composer.phar" > /usr/local/bin/composer && chmod 755 /usr/local/bin/composer
RUN ln -s /app/docker/php.ini /etc/php-zts/conf.d/zz-osuweb.ini
WORKDIR /app
RUN groupadd osuweb && useradd -g osuweb -d /app/.docker osuweb
# fix broken readline in php console
ENV TERMINFO /usr/share/terminfo
ENTRYPOINT ["/app/docker/development/entrypoint.sh"]
CMD ["octane"]