Skip to content

Instantly share code, notes, and snippets.

@andriilive
Created October 17, 2022 10:15
Show Gist options
  • Save andriilive/3f869b3c2e15b0c1bbe016ad9cffdf67 to your computer and use it in GitHub Desktop.
Save andriilive/3f869b3c2e15b0c1bbe016ad9cffdf67 to your computer and use it in GitHub Desktop.
GitPod WP Minimal
FROM gitpod/workspace-full
# Install composer deps
RUN brew install php@8.0 wp-cli && brew unlink php && brew link php@8.0 # sudo install-packages adminer
image:
file: .gitpod.Dockerfile
github:
prebuilds:
master: true
branches: true
# enable for all branches in this repo (defaults to false)
addCheck: true
ports:
- port: 8080
onOpen: open-browser
- port: 3306
onOpen: notify
tasks:
- name: "Composer install"
init: composer install && cp config/envs/gitpod/.env .env && sed -i "s|WP_HOME=|WP_HOME=${GITPOD_WORKSPACE_URL}|g" .env && sed -i "s|WP_HOME=https://|WP_HOME=https://8080-|g" .env
command: wp server --host=0.0.0.0 --port=8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment