Skip to content
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .lando.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ name: wordpressdev
recipe: wordpress

config:
php: '7.2'
via: nginx
webroot: public
database: mariadb
xdebug: false
Expand All @@ -27,11 +25,19 @@ env_file:

services:
appserver:
type: php:custom
overrides:
image: westonruter/php:7.3-with-node12
build:
context: ./
dockerfile: Dockerfile
environment:
# Support debugging with XDEBUG.
PHP_IDE_CONFIG: "serverName=appserver"
composer:
# Note installing phpunit should be temporary because core should really install it via composer on its own.
phpunit/phpunit: "^6"
install_dependencies_as_root:
- bash bin/install-dependencies.sh
# Allow loopback requests to work.
- echo "127.0.0.1 wordpressdev.lndo.site" >> /etc/hosts
run:
Expand Down
26 changes: 26 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM devwithlando/php:7.3-fpm-2

# Choose the major node version
ENV NODE_VERSION=12

# Install node
RUN curl -sL "https://deb.nodesource.com/setup_${NODE_VERSION}.x" | bash - && apt-get install -y nodejs

# Install yarn
RUN curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update
RUN apt-get install -y yarn

# Add support for yaml.
RUN apt-get install -y libyaml-dev
RUN yes | pecl install yaml
RUN echo 'extension=yaml.so' > /usr/local/etc/php/conf.d/yaml.ini

# Add other dependencies.
RUN apt-get install -y gnupg
RUN apt-get install -y zip
RUN apt-get install -y subversion

# Add dependency for AMP plugin
RUN apt-get install -y protobuf-compiler python-protobuf
40 changes: 0 additions & 40 deletions bin/install-dependencies.sh

This file was deleted.