Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8d1bafa

Browse files
Merge pull request#1 from Atyantik/php8.3-bullseye
Upgrade to PHP 8.3 Bullseye
2 parents950fa09 +d485243 commit8d1bafa

File tree

2 files changed

+36
-17
lines changed

2 files changed

+36
-17
lines changed

‎Dockerfile‎

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,46 @@
1-
FROM php:7.4.12-fpm-alpine3.12
1+
FROM php:8.3-fpm-bullseye
22

3-
RUN apk add --no-cache \
3+
RUN apt-get update && apt-get upgrade -y
4+
RUN apt-get install -y \
45
$PHPIZE_DEPS \
5-
freetype \
6-
libpng \
7-
libjpeg-turbo \
8-
freetype-dev \
6+
cmake libfreetype6-dev libfontconfig1-dev xclip \
97
libpng-dev \
10-
libjpeg-turbo-dev \
8+
libjpeg-dev \
119
libc-dev \
1210
jpegoptim optipng pngquant gifsicle \
1311
unzip \
1412
curl \
1513
libzip-dev \
16-
curl-dev \
17-
pkgconfig \
18-
libressl-dev \
14+
libpq-dev \
15+
pkg-config \
16+
libssl-dev \
1917
libmcrypt-dev \
20-
zlib-dev \
18+
zlib1g zlib1g-dev \
2119
libxml2-dev \
22-
oniguruma-dev \
20+
libonig-dev \
2321
graphviz \
2422
&& docker-php-ext-configure gd \
2523
--with-freetype=/usr/include/ \
2624
--with-jpeg=/usr/include/ && \
27-
NPROC=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1) && \
28-
docker-php-ext-install -j${NPROC} gd \
29-
xdebug \
25+
docker-php-ext-install gd \
3026
pcntl \
3127
pdo_mysql \
28+
pdo_pgsql \
3229
mbstring \
3330
mysqli \
3431
exif \
3532
zip \
36-
&& apk del --no-cache freetype-dev libpng-dev libjpeg-turbo-dev
33+
intl
3734

3835
# Install Mongo DB
3936
RUN pecl install mongodb \
4037
&& docker-php-ext-enable mongodb
4138

42-
RUNecho'' |pecl install redis
39+
RUN pecl install redis
4340
RUN docker-php-ext-enable redis
4441

42+
RUN docker-php-ext-install opcache
43+
4544
RUN rm -rf /var/lib/apt/lists/*
4645

4746
# Install composer

‎README.md‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
###Create AMD and ARM builds with buildx
2+
```
3+
docker buildx build --platform="linux/amd64" -t atyantik/laravel-php:8.3-bullseye-amd64 .
4+
```
5+
6+
```
7+
docker buildx build --platform="linux/arm64" -t atyantik/laravel-php:8.3-bullseye-arm64 .
8+
```
9+
10+
###Push both to docker hub
11+
docker push atyantik/laravel-php:8.3-bullseye-arm64
12+
docker push atyantik/laravel-php:8.3-bullseye-amd64
13+
14+
15+
`// docker manifest rm atyantik/laravel-php:8.3 atyantik/laravel-php:8.3-bullseye-amd64 atyantik/laravel-php:8.3-bullseye-arm64`
16+
17+
docker manifest create atyantik/laravel-php:8.3-bullseye atyantik/laravel-php:8.3-bullseye-amd64 atyantik/laravel-php:8.3-bullseye-arm64
18+
19+
docker manifest push atyantik/laravel-php:8.3-bullseye
20+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp