Кемеровские программисты php общаются здесь
Anonymous
Докеризация приложения Laravel всегда терпит неудачу в одной конкретной строке на изображениях Alpine и Debain [дубликат
Сообщение
Anonymous » 22 ноя 2024, 18:26
Я пытался докеризировать приложение Laravel. есть определенная линия, которая всегда терпит неудачу. Я перепробовал много вещей, но уже несколько часов не могу найти решение. Раньше я использовал phpfpm на основе Alpine, но это тоже не удалось, поэтому я переключился на Debian, чтобы он мог успешно обрабатываться. но этого не произошло.
Код: Выделить всё
FROM php:8.3.9-fpm
RUN echo "deb http://deb.debian.org/debian bullseye main" > /etc/apt/sources.list \
&& echo "deb http://deb.debian.org/debian-security bullseye-security main" >> /etc/apt/sources.list \
&& echo "deb http://deb.debian.org/debian bullseye-updates main" >> /etc/apt/sources.list
RUN apt-get update -o Debug::pkgProblemResolver=true && apt-get install -y \
curl \
libpng-dev \
libjpeg62-turbo-dev \
libfreetype6-dev \
zip \
unzip \
libonig-dev \
libxml2-dev \
netcat-openbsd \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install gd pdo pdo_mysql mbstring exif pcntl bcmath opcache \
&& docker-php-ext-enable gd mbstring exif pcntl bcmath opcache \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# Rest of the docker file
и это ошибка, которую я всегда получаю.
Код: Выделить всё
=> ERROR [stage-0 4/7] RUN apt-get update -o Debug::pkgProblemResolver=true && apt-get install -y curl libpng-dev libjpeg62-turbo-dev libfree 296.5s
------
> [stage-0 4/7] RUN apt-get update -o Debug::pkgProblemResolver=true && apt-get install -y curl libpng-dev libjpeg62-turbo-dev libfreetype6-dev zip unzip libonig-dev libxml2-dev netcat-openbsd && docker-php-ext-configure gd --with-freetype --with-jpeg && docker-php-ext-install gd pdo pdo_mysql mbstring exif pcntl bcmath opcache && docker-php-ext-enable gd mbstring exif pcntl bcmath opcache && apt-get clean && rm -rf /var/lib/apt/lists/*:
13.49 Ign:1 http://deb.debian.org/debian bullseye InRelease
25.78 Ign:2 http://deb.debian.org/debian-security bullseye-security InRelease
38.06 Ign:3 http://deb.debian.org/debian bullseye-updates InRelease
50.35 Ign:4 http://deb.debian.org/debian bookworm InRelease
62.64 Ign:5 http://deb.debian.org/debian bookworm-updates InRelease
74.93 Ign:6 http://deb.debian.org/debian-security bookworm-security InRelease
87.21 Ign:1 http://deb.debian.org/debian bullseye InRelease
99.56 Ign:2 http://deb.debian.org/debian-security bullseye-security InRelease
111.9 Ign:3 http://deb.debian.org/debian bullseye-updates InRelease
124.1 Ign:4 http://deb.debian.org/debian bookworm InRelease
136.4 Ign:5 http://deb.debian.org/debian bookworm-updates InRelease
148.7 Ign:6 http://deb.debian.org/debian-security bookworm-security InRelease
161.0 Ign:1 http://deb.debian.org/debian bullseye InRelease
173.4 Ign:2 http://deb.debian.org/debian-security bullseye-security InRelease
185.7 Ign:3 http://deb.debian.org/debian bullseye-updates InRelease
197.9 Ign:4 http://deb.debian.org/debian bookworm InRelease
210.2 Ign:5 http://deb.debian.org/debian bookworm-updates InRelease
222.5 Ign:6 http://deb.debian.org/debian-security bookworm-security InRelease
234.8 Err:1 http://deb.debian.org/debian bullseye InRelease
234.8 Temporary failure resolving 'deb.debian.org'
247.1 Err:2 http://deb.debian.org/debian-security bullseye-security InRelease
247.1 Temporary failure resolving 'deb.debian.org'
259.4 Err:3 http://deb.debian.org/debian bullseye-updates InRelease
259.4 Temporary failure resolving 'deb.debian.org'
271.7 Err:4 http://deb.debian.org/debian bookworm InRelease
271.7 Temporary failure resolving 'deb.debian.org'
284.0 Err:5 http://deb.debian.org/debian bookworm-updates InRelease
284.0 Temporary failure resolving 'deb.debian.org'
296.2 Err:6 http://deb.debian.org/debian-security bookworm-security InRelease
296.2 Temporary failure resolving 'deb.debian.org'
296.3 Reading package lists...
296.3 W: Failed to fetch http://deb.debian.org/debian/dists/bullseye/InRelease Temporary failure resolving 'deb.debian.org'
296.3 W: Failed to fetch http://deb.debian.org/debian-security/dists/bullseye-security/InRelease Temporary failure resolving 'deb.debian.org'
296.3 W: Failed to fetch http://deb.debian.org/debian/dists/bullseye-updates/InRelease Temporary failure resolving 'deb.debian.org'
296.3 W: Failed to fetch http://deb.debian.org/debian/dists/bookworm/InRelease Temporary failure resolving 'deb.debian.org'
296.3 W: Failed to fetch http://deb.debian.org/debian/dists/bookworm-updates/InRelease Temporary failure resolving 'deb.debian.org'
296.3 W: Failed to fetch http://deb.debian.org/debian-security/dists/bookworm-security/InRelease Temporary failure resolving 'deb.debian.org'
296.3 W: Some index files failed to download. They have been ignored, or old ones used instead.
296.3 Reading package lists...
296.4 Building dependency tree...
296.4 Reading state information...
296.4 E: Unable to locate package libpng-dev
296.4 E: Unable to locate package libjpeg62-turbo-dev
296.4 E: Unable to locate package libfreetype6-dev
296.4 E: Unable to locate package zip
296.4 E: Unable to locate package unzip
296.4 E: Unable to locate package libonig-dev
296.4 E: Unable to locate package libxml2-dev
296.4 E: Unable to locate package netcat-openbsd
------
Dockerfile:14
--------------------
13 |
14 | >>> RUN apt-get update -o Debug::pkgProblemResolver=true && apt-get install -y \
15 | >>> curl \
16 | >>> libpng-dev \
17 | >>> libjpeg62-turbo-dev \
18 | >>> libfreetype6-dev \
19 | >>> zip \
20 | >>> unzip \
21 | >>> libonig-dev \
22 | >>> libxml2-dev \
23 | >>> netcat-openbsd \
24 | >>> && docker-php-ext-configure gd --with-freetype --with-jpeg \
25 | >>> && docker-php-ext-install gd pdo pdo_mysql mbstring exif pcntl bcmath opcache \
26 | >>> && docker-php-ext-enable gd mbstring exif pcntl bcmath opcache \
27 | >>> && apt-get clean && rm -rf /var/lib/apt/lists/*
28 |
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get update -o Debug::pkgProblemResolver=true && apt-get install -y curl libpng-dev libjpeg62-turbo-dev libfreetype6-dev zip unzip libonig-dev libxml2-dev netcat-openbsd && docker-php-ext-configure gd --with-freetype --with-jpeg && docker-php-ext-install gd pdo pdo_mysql mbstring exif pcntl bcmath opcache && docker-php-ext-enable gd mbstring exif pcntl bcmath opcache && apt-get clean && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100
Знаете, как мне решить эту проблему?
Подробнее здесь:
https://stackoverflow.com/questions/792 ... and-debain
1732289161
Anonymous
Я пытался докеризировать приложение Laravel. есть определенная линия, которая всегда терпит неудачу. Я перепробовал много вещей, но уже несколько часов не могу найти решение. Раньше я использовал phpfpm на основе Alpine, но это тоже не удалось, поэтому я переключился на Debian, чтобы он мог успешно обрабатываться. но этого не произошло. [code]FROM php:8.3.9-fpm RUN echo "deb http://deb.debian.org/debian bullseye main" > /etc/apt/sources.list \ && echo "deb http://deb.debian.org/debian-security bullseye-security main" >> /etc/apt/sources.list \ && echo "deb http://deb.debian.org/debian bullseye-updates main" >> /etc/apt/sources.list RUN apt-get update -o Debug::pkgProblemResolver=true && apt-get install -y \ curl \ libpng-dev \ libjpeg62-turbo-dev \ libfreetype6-dev \ zip \ unzip \ libonig-dev \ libxml2-dev \ netcat-openbsd \ && docker-php-ext-configure gd --with-freetype --with-jpeg \ && docker-php-ext-install gd pdo pdo_mysql mbstring exif pcntl bcmath opcache \ && docker-php-ext-enable gd mbstring exif pcntl bcmath opcache \ && apt-get clean && rm -rf /var/lib/apt/lists/* # Rest of the docker file [/code] и это ошибка, которую я всегда получаю. [code] => ERROR [stage-0 4/7] RUN apt-get update -o Debug::pkgProblemResolver=true && apt-get install -y curl libpng-dev libjpeg62-turbo-dev libfree 296.5s ------ > [stage-0 4/7] RUN apt-get update -o Debug::pkgProblemResolver=true && apt-get install -y curl libpng-dev libjpeg62-turbo-dev libfreetype6-dev zip unzip libonig-dev libxml2-dev netcat-openbsd && docker-php-ext-configure gd --with-freetype --with-jpeg && docker-php-ext-install gd pdo pdo_mysql mbstring exif pcntl bcmath opcache && docker-php-ext-enable gd mbstring exif pcntl bcmath opcache && apt-get clean && rm -rf /var/lib/apt/lists/*: 13.49 Ign:1 http://deb.debian.org/debian bullseye InRelease 25.78 Ign:2 http://deb.debian.org/debian-security bullseye-security InRelease 38.06 Ign:3 http://deb.debian.org/debian bullseye-updates InRelease 50.35 Ign:4 http://deb.debian.org/debian bookworm InRelease 62.64 Ign:5 http://deb.debian.org/debian bookworm-updates InRelease 74.93 Ign:6 http://deb.debian.org/debian-security bookworm-security InRelease 87.21 Ign:1 http://deb.debian.org/debian bullseye InRelease 99.56 Ign:2 http://deb.debian.org/debian-security bullseye-security InRelease 111.9 Ign:3 http://deb.debian.org/debian bullseye-updates InRelease 124.1 Ign:4 http://deb.debian.org/debian bookworm InRelease 136.4 Ign:5 http://deb.debian.org/debian bookworm-updates InRelease 148.7 Ign:6 http://deb.debian.org/debian-security bookworm-security InRelease 161.0 Ign:1 http://deb.debian.org/debian bullseye InRelease 173.4 Ign:2 http://deb.debian.org/debian-security bullseye-security InRelease 185.7 Ign:3 http://deb.debian.org/debian bullseye-updates InRelease 197.9 Ign:4 http://deb.debian.org/debian bookworm InRelease 210.2 Ign:5 http://deb.debian.org/debian bookworm-updates InRelease 222.5 Ign:6 http://deb.debian.org/debian-security bookworm-security InRelease 234.8 Err:1 http://deb.debian.org/debian bullseye InRelease 234.8 Temporary failure resolving 'deb.debian.org' 247.1 Err:2 http://deb.debian.org/debian-security bullseye-security InRelease 247.1 Temporary failure resolving 'deb.debian.org' 259.4 Err:3 http://deb.debian.org/debian bullseye-updates InRelease 259.4 Temporary failure resolving 'deb.debian.org' 271.7 Err:4 http://deb.debian.org/debian bookworm InRelease 271.7 Temporary failure resolving 'deb.debian.org' 284.0 Err:5 http://deb.debian.org/debian bookworm-updates InRelease 284.0 Temporary failure resolving 'deb.debian.org' 296.2 Err:6 http://deb.debian.org/debian-security bookworm-security InRelease 296.2 Temporary failure resolving 'deb.debian.org' 296.3 Reading package lists... 296.3 W: Failed to fetch http://deb.debian.org/debian/dists/bullseye/InRelease Temporary failure resolving 'deb.debian.org' 296.3 W: Failed to fetch http://deb.debian.org/debian-security/dists/bullseye-security/InRelease Temporary failure resolving 'deb.debian.org' 296.3 W: Failed to fetch http://deb.debian.org/debian/dists/bullseye-updates/InRelease Temporary failure resolving 'deb.debian.org' 296.3 W: Failed to fetch http://deb.debian.org/debian/dists/bookworm/InRelease Temporary failure resolving 'deb.debian.org' 296.3 W: Failed to fetch http://deb.debian.org/debian/dists/bookworm-updates/InRelease Temporary failure resolving 'deb.debian.org' 296.3 W: Failed to fetch http://deb.debian.org/debian-security/dists/bookworm-security/InRelease Temporary failure resolving 'deb.debian.org' 296.3 W: Some index files failed to download. They have been ignored, or old ones used instead. 296.3 Reading package lists... 296.4 Building dependency tree... 296.4 Reading state information... 296.4 E: Unable to locate package libpng-dev 296.4 E: Unable to locate package libjpeg62-turbo-dev 296.4 E: Unable to locate package libfreetype6-dev 296.4 E: Unable to locate package zip 296.4 E: Unable to locate package unzip 296.4 E: Unable to locate package libonig-dev 296.4 E: Unable to locate package libxml2-dev 296.4 E: Unable to locate package netcat-openbsd ------ Dockerfile:14 -------------------- 13 | 14 | >>> RUN apt-get update -o Debug::pkgProblemResolver=true && apt-get install -y \ 15 | >>> curl \ 16 | >>> libpng-dev \ 17 | >>> libjpeg62-turbo-dev \ 18 | >>> libfreetype6-dev \ 19 | >>> zip \ 20 | >>> unzip \ 21 | >>> libonig-dev \ 22 | >>> libxml2-dev \ 23 | >>> netcat-openbsd \ 24 | >>> && docker-php-ext-configure gd --with-freetype --with-jpeg \ 25 | >>> && docker-php-ext-install gd pdo pdo_mysql mbstring exif pcntl bcmath opcache \ 26 | >>> && docker-php-ext-enable gd mbstring exif pcntl bcmath opcache \ 27 | >>> && apt-get clean && rm -rf /var/lib/apt/lists/* 28 | -------------------- ERROR: failed to solve: process "/bin/sh -c apt-get update -o Debug::pkgProblemResolver=true && apt-get install -y curl libpng-dev libjpeg62-turbo-dev libfreetype6-dev zip unzip libonig-dev libxml2-dev netcat-openbsd && docker-php-ext-configure gd --with-freetype --with-jpeg && docker-php-ext-install gd pdo pdo_mysql mbstring exif pcntl bcmath opcache && docker-php-ext-enable gd mbstring exif pcntl bcmath opcache && apt-get clean && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100 [/code] Знаете, как мне решить эту проблему? Подробнее здесь: [url]https://stackoverflow.com/questions/79215603/dockerizing-laravel-app-always-fails-at-one-particular-line-on-alpine-and-debain[/url]
0 Ответы
42 Просмотры
Последнее сообщение Anonymous
13 дек 2024, 09:27
0 Ответы
36 Просмотры
Последнее сообщение Anonymous
16 дек 2024, 12:19
0 Ответы
31 Просмотры
Последнее сообщение Anonymous
17 дек 2024, 13:36
0 Ответы
25 Просмотры
Последнее сообщение Anonymous
23 дек 2024, 09:23
0 Ответы
157 Просмотры
Последнее сообщение Гость
29 фев 2024, 06:18