Skip to content

Commit 30ded14

Browse files
committed
Revert "minor changes to the docker files"
This reverts commit 65bdac1.
1 parent 976a13a commit 30ded14

File tree

6 files changed

+50
-54
lines changed

6 files changed

+50
-54
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,9 @@ jobs:
8686
strategy:
8787
fail-fast: false
8888
matrix:
89-
php:
90-
- '8.1'
91-
- '8.2'
92-
- '8.3'
93-
- '8.4'
94-
ts:
95-
- 'nts'
96-
- 'ts'
97-
arch:
98-
- 'x64'
89+
php: [ '8.1', '8.2', '8.3', '8.4' ]
90+
ts: [ 'nts', 'ts' ]
91+
arch: [ 'x64' ]
9992

10093
name:
10194
- ubuntu-gcc
@@ -277,11 +270,7 @@ jobs:
277270
strategy:
278271
fail-fast: false
279272
matrix:
280-
php:
281-
- '8.1'
282-
- '8.2'
283-
- '8.3'
284-
- '8.4'
273+
php: [ '8.1', '8.2', '8.3', '8.4' ]
285274

286275
steps:
287276
- uses: actions/checkout@v4

docker/8.0/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
FROM composer:latest AS composer
1+
FROM composer:latest as composer
22
FROM php:8.0-fpm
33

4-
COPY ./extra.ini /usr/local/etc/php/conf.d/
4+
ADD ./extra.ini /usr/local/etc/php/conf.d/
55

66
# User/Group globals
77
ENV MY_USER="phalcon" \
@@ -30,16 +30,15 @@ RUN apt update -y && \
3030
libmemcached-dev \
3131
libpng-dev \
3232
libpq-dev \
33+
libyaml-dev \
3334
libwebp-dev \
3435
libxpm-dev \
35-
libyaml-dev \
3636
libzip-dev \
3737
locales \
3838
nano \
3939
sudo \
4040
wget \
41-
zip && \
42-
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
41+
zip
4342

4443
# PECL Packages
4544
RUN pecl install -o -f redis && \

docker/8.1/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
FROM composer:latest AS composer
1+
FROM composer:latest as composer
22
FROM php:8.1-fpm
33

4-
COPY ./extra.ini /usr/local/etc/php/conf.d/
4+
ADD ./extra.ini /usr/local/etc/php/conf.d/
55

66
# User/Group globals
77
ENV MY_USER="phalcon" \
@@ -30,16 +30,15 @@ RUN apt update -y && \
3030
libmemcached-dev \
3131
libpng-dev \
3232
libpq-dev \
33+
libyaml-dev \
3334
libwebp-dev \
3435
libxpm-dev \
35-
libyaml-dev \
3636
libzip-dev \
3737
locales \
3838
nano \
3939
sudo \
4040
wget \
41-
zip && \
42-
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
41+
zip
4342

4443
# PECL Packages
4544
RUN pecl install -o -f redis && \

docker/8.2/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
FROM composer:latest AS composer
1+
FROM composer:latest as composer
22
FROM php:8.2-fpm
33

4-
COPY ./extra.ini /usr/local/etc/php/conf.d/
4+
ADD ./extra.ini /usr/local/etc/php/conf.d/
55

66
# User/Group globals
77
ENV MY_USER="phalcon" \
@@ -30,16 +30,15 @@ RUN apt update -y && \
3030
libmemcached-dev \
3131
libpng-dev \
3232
libpq-dev \
33+
libyaml-dev \
3334
libwebp-dev \
3435
libxpm-dev \
35-
libyaml-dev \
3636
libzip-dev \
3737
locales \
3838
nano \
3939
sudo \
4040
wget \
41-
zip && \
42-
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
41+
zip
4342

4443
# PECL Packages
4544
RUN pecl install -o -f redis && \

docker/8.3/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
FROM composer:latest AS composer
1+
FROM composer:latest as composer
22
FROM php:8.3-fpm
33

4-
COPY ./extra.ini /usr/local/etc/php/conf.d/
4+
ADD ./extra.ini /usr/local/etc/php/conf.d/
55

66
# User/Group globals
77
ENV MY_USER="phalcon" \
@@ -30,16 +30,15 @@ RUN apt update -y && \
3030
libmemcached-dev \
3131
libpng-dev \
3232
libpq-dev \
33+
libyaml-dev \
3334
libwebp-dev \
3435
libxpm-dev \
35-
libyaml-dev \
3636
libzip-dev \
3737
locales \
3838
nano \
3939
sudo \
4040
wget \
41-
zip && \
42-
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
41+
zip
4342

4443
# Remove this RUN when imagick will be available via pecl
4544
RUN cd /opt && \

docker/8.4/Dockerfile

Lines changed: 30 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
1-
FROM composer:latest AS composer
1+
FROM composer:latest as composer
22
FROM php:8.4-fpm
33

4-
COPY ./extra.ini /usr/local/etc/php/conf.d/
4+
ADD ./extra.ini /usr/local/etc/php/conf.d/
55

66
# User/Group globals
77
ENV MY_USER="phalcon" \
88
MY_GROUP="phalcon" \
99
MY_UID="1000" \
1010
MY_GID="1000" \
11-
PHP_VERSION="8.4" \
11+
PHP_VERSION="8.3" \
1212
LANG=en_US.UTF-8 \
1313
LANGUAGE=en_US.UTF-8 \
1414
LC_ALL=en_US.UTF-8
1515

1616
# User and Group
1717
RUN set -eux && \
1818
groupadd -g ${MY_GID} -r ${MY_GROUP} && \
19-
useradd -u ${MY_UID} -m -s /bin/bash -g ${MY_GROUP} ${MY_USER} && \
19+
useradd -u ${MY_UID} -m -s /bin/bash -g ${MY_GROUP} ${MY_USER}
20+
2021
# Update
21-
apt update -y && \
22+
RUN apt update -y && \
2223
apt install -y \
2324
apt-utils \
2425
gettext \
@@ -29,50 +30,60 @@ RUN set -eux && \
2930
libmemcached-dev \
3031
libpng-dev \
3132
libpq-dev \
33+
libyaml-dev \
3234
libwebp-dev \
3335
libxpm-dev \
34-
libyaml-dev \
3536
libzip-dev \
3637
locales \
3738
nano \
3839
sudo \
3940
wget \
40-
zip && \
41-
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* && \
41+
zip
42+
43+
# Remove this RUN when imagick will be available via pecl
44+
RUN cd /opt && \
45+
git clone https://github.com/Imagick/imagick.git && \
46+
cd imagick && \
47+
phpize && ./configure && \
48+
make && make install
49+
4250
# PECL Packages
43-
pecl install -o -f redis && \
51+
RUN pecl install -o -f redis && \
4452
pecl install igbinary \
4553
msgpack \
4654
apcu \
4755
yaml \
48-
imagick \
56+
# imagick \
4957
memcached \
50-
zephir_parser && \
58+
zephir_parser
59+
5160
# Locale
52-
sed -i -e 's/# de_DE.UTF-8 UTF-8/de_DE.UTF-8 UTF-8/' /etc/locale.gen && \
61+
RUN sed -i -e 's/# de_DE.UTF-8 UTF-8/de_DE.UTF-8 UTF-8/' /etc/locale.gen && \
5362
sed -i -e 's/# el_GR.UTF-8 UTF-8/el_GR.UTF-8 UTF-8/' /etc/locale.gen && \
5463
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
5564
sed -i -e 's/# es_ES.UTF-8 UTF-8/es_ES.UTF-8 UTF-8/' /etc/locale.gen && \
5665
sed -i -e 's/# ru_RU.UTF-8 UTF-8/ru_RU.UTF-8 UTF-8/' /etc/locale.gen && \
5766
dpkg-reconfigure --frontend=noninteractive locales && \
58-
update-locale LANG=en_US.UTF-8 && \
67+
update-locale LANG=en_US.UTF-8
68+
5969
# Install PHP extensions
60-
docker-php-ext-configure gd --with-freetype \
70+
RUN docker-php-ext-configure gd --with-freetype \
6171
--with-jpeg=/usr/include/ \
6272
--with-xpm \
6373
--with-webp \
64-
--enable-gd && \
65-
# Install PHP extensions
66-
docker-php-ext-install \
74+
--enable-gd
75+
76+
RUN docker-php-ext-install \
6777
gd \
6878
gettext \
6979
gmp \
7080
intl \
7181
pdo_mysql \
7282
pdo_pgsql \
73-
zip && \
83+
zip
84+
7485
# Install PHP extensions
75-
docker-php-ext-enable \
86+
RUN docker-php-ext-enable \
7687
redis \
7788
igbinary \
7889
msgpack \

0 commit comments

Comments
 (0)