Comments (1)
Here is how I fix it. Please add it to your "bedrock.dockerfile" file:
FROM php:8.2-fpm as base
LABEL name=bedrock
LABEL intermediate=true
Install essential packages
RUN apt-get update
&& apt-get install -y
build-essential
curl
git
gnupg
less
nano
vim
unzip
zip
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
&& rm -rf /var/lib/apt/lists/*
&& apt-get clean
FROM base as php
LABEL name=bedrock
LABEL intermediate=true
Install php extensions and related packages
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN chmod +x /usr/local/bin/install-php-extensions && sync
&& install-php-extensions
@composer
exif
gd
memcached
mysqli
pcntl
pdo_mysql
zip
&& apt-get update
&& apt-get install -y
gifsicle
jpegoptim
libpng-dev
libjpeg62-turbo-dev
libfreetype6-dev
libmemcached-dev
locales
lua-zlib-dev
optipng
pngquant
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
&& rm -rf /var/lib/apt/lists/*
&& apt-get clean
FROM php as bedrock
LABEL name=bedrock
Install nginx & supervisor
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash
&& apt-get update
&& apt-get install -y
nginx
nodejs
supervisor
npm
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
&& rm -rf /var/lib/apt/lists/*
&& apt-get clean
&& npm install -g yarn
Configure nginx, php-fpm and supervisor
COPY ./build/nginx/nginx.conf /etc/nginx/nginx.conf
COPY ./build/nginx/sites-enabled /etc/nginx/conf.d
COPY ./build/nginx/sites-enabled /etc/nginx/sites-enabled
COPY ./build/php/8.0/fpm/pool.d /etc/php/8.0/fpm/pool.d
COPY ./build/supervisor/supervisord.conf /etc/supervisord.conf
WordPress CLI
RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
&& chmod +x wp-cli.phar
&& mv wp-cli.phar /usr/bin/_wp;
COPY ./build/bin/wp.sh /srv/wp.sh
RUN chmod +x /srv/wp.sh
&& mv /srv/wp.sh /usr/bin/wp
Installation helper
COPY ./build/bin/bedrock-install.sh /srv/bedrock-install.sh
RUN chmod +x /srv/bedrock-install.sh
WORKDIR /srv/bedrock
CMD ["/srv/bedrock-install.sh"]
from bedrock-docker.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bedrock-docker.