Skip to content

Commit

Permalink
Add postgres client and php extension
Browse files Browse the repository at this point in the history
  • Loading branch information
codebarista committed Mar 12, 2024
1 parent 96b7efe commit e5f5a02
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ version: 3
silent: true

env:
TAG: '{{.DOCKER_IMAGE_TAG | default "codebarista/octane:latest"}}'
LOCAL_PLATFORM: '{{.DOCKER_LOCAL_PLATFORM | default "linux/arm64"}}'
PLATFORM: '{{.DOCKER_PLATFORM | default "linux/amd64,linux/arm64"}}'
TAG: '{{.DOCKER_IMAGE_TAG | default "codebarista/octane:latest"}}'
REGISTRY: '{{.DOCKER_REGISTRY | default "docker.io"}}'

tasks:
Expand All @@ -30,15 +31,15 @@ tasks:
- task: login
- task: build
vars:
OUTPUT: type=registry
OUTPUT: type=registry --push

load:
desc: Build and load image to local docker
cmds:
- task: build
vars:
PLATFORM: linux/arm64
OUTPUT: type=docker
OUTPUT: type=docker --load

prune:
desc: Prune dangling images
Expand Down
3 changes: 3 additions & 0 deletions src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ENV TZ=Europe/Berlin
RUN crontab -l | { cat; echo "$SCHEDULE_CRONTAB"; } | crontab - \
&& chmod +x /usr/local/bin/install-php-extensions \
&& apk update && apk upgrade && apk add --update \
postgresql-client \
mariadb-client \
supervisor \
xdg-utils \
Expand Down Expand Up @@ -53,6 +54,8 @@ RUN install-php-extensions \
opcache \
pcntl \
pdo_mysql \
pdo_pgsql \
pgsql \
redis \
swoole \
zip
Expand Down

0 comments on commit e5f5a02

Please sign in to comment.