Skip to content
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
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ RUN apt update \

FROM base AS dev

ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"

RUN apt-get update \
&& install-php-extensions xdebug \
&& (type -p wget >/dev/null || (apt update && apt install wget -y)) \
Expand All @@ -75,6 +78,10 @@ RUN apt-get update \
&& unzip /tmp/JetBrainsMono.zip -d /usr/share/fonts/nerd-fonts/JetBrainsMono \
&& rm /tmp/JetBrainsMono.zip \
&& fc-cache -fv \
&& eval "$(fnm env --use-on-cd --shell bash)" \
&& mkdir -p -m 777 /pnpm \
&& pnpm install -g playwright \
&& pnpx playwright install --with-deps \
&& apt-get -y autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
Expand Down
1 change: 1 addition & 0 deletions README-ALPINE.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Both Alpine and Bookworm variants provide the same functionality:

### Development Features (in -dev variants)
- ✅ Xdebug PHP extension
- ✅ Playwright for browser automation and testing
- ✅ GitHub CLI (`gh`)
- ✅ Developer tools (htop, nano, starship prompt)
- ✅ Zsh with Oh My Zsh and plugins
Expand Down
6 changes: 6 additions & 0 deletions alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ RUN apk add --no-cache nodejs npm jpegoptim optipng pngquant gifsicle libavif li

FROM base AS dev

ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"

RUN install-php-extensions xdebug \
&& apk add --no-cache wget tar gzip \
&& ARCH=$(uname -m) \
Expand Down Expand Up @@ -65,6 +68,9 @@ RUN install-php-extensions xdebug \
&& unzip /tmp/JetBrainsMono.zip -d /usr/share/fonts/nerd-fonts/JetBrainsMono \
&& rm /tmp/JetBrainsMono.zip \
&& fc-cache -fv \
&& mkdir -p -m 777 /pnpm \
&& pnpm install -g playwright \
&& pnpx playwright install --with-deps \
&& rm -rf /var/cache/apk/* /tmp/* /var/tmp/*

# Switch to the deploy user to install Oh My Zsh and plugins
Expand Down
2 changes: 1 addition & 1 deletion docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ target "default" {
}

labels = {
"org.opencontainers.image.description" = variant == "dev" ? "FrankenPHP Docker images (${os}) with supervisor, fnm(node version manager), pnpm, sqlsrv, Xdebug, and a few other goodies." : "FrankenPHP Docker images (${os}) with supervisor, fnm(node version manager), pnpm, sqlsrv, and a few other goodies."
"org.opencontainers.image.description" = variant == "dev" ? "FrankenPHP Docker images (${os}) with supervisor, fnm(node version manager), pnpm, Playwright, sqlsrv, Xdebug, and a few other goodies." : "FrankenPHP Docker images (${os}) with supervisor, fnm(node version manager), pnpm, sqlsrv, and a few other goodies."
"org.opencontainers.image.created" = "${timestamp()}"
"org.opencontainers.image.version" = variant == "dev" ? "${clean_tag(php_version)}-${os}-dev" : "${clean_tag(php_version)}-${os}"
"org.opencontainers.image.revision" = SHA
Expand Down
2 changes: 1 addition & 1 deletion test.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

const PRODUCTION_ONLY_BINARIES = [];

const DEV_ONLY_BINARIES = ['gh', 'htop', 'nano'];
const DEV_ONLY_BINARIES = ['gh', 'htop', 'nano', 'playwright', 'pnpx'];

const DEV_BINARIES = [
...PRODUCTION_BINARIES,
Expand Down