Skip to content
Merged
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
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*
!.dockerignore
!Dockerfile
!deployer.phar
2 changes: 2 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,7 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
provenance: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
17 changes: 14 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
FROM php:8.4-cli-alpine

RUN apk update && apk add --no-cache linux-headers bash git openssh-client rsync zip unzip libzip-dev curl-dev

RUN docker-php-ext-install pcntl sockets curl zip
RUN set -eux; \
apk add --no-cache \
bash \
git \
libzip \
openssh-client \
rsync \
unzip \
zip; \
apk add --no-cache --virtual .build-deps \
libzip-dev \
linux-headers; \
docker-php-ext-install -j"$(nproc)" pcntl sockets zip; \
apk del .build-deps

COPY --chmod=755 deployer.phar /bin/dep

Expand Down