Skip to content
Open
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
1 change: 1 addition & 0 deletions .devcontainer/000-default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
DocumentRoot /workspaces/wp-codespace/wordpress

<Directory />
AllowOverride All
Require all granted
</Directory>

Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/devcontainers/php:0-7.4
FROM mcr.microsoft.com/devcontainers/php:0-8.3

# Install MariaDB client
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
Expand All @@ -10,7 +10,7 @@ RUN docker-php-ext-install mysqli pdo pdo_mysql
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/local/bin/wp

# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
ARG NODE_VERSION="19"
ARG NODE_VERSION="21"
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi

# [Optional] Uncomment this section to install additional OS packages.
Expand Down