Skip to content

Commit cfa416d

Browse files
authored
Feature: Use Docker for Vapor deployments (#960)
1 parent 1a1bc6f commit cfa416d

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed

backend/production.Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM laravelphp/vapor:php83
2+
3+
# Install ImageMagick with WebP support
4+
# The imagemagick-webp package provides WebP delegate support
5+
RUN apk add --update --no-cache \
6+
autoconf \
7+
g++ \
8+
imagemagick \
9+
imagemagick-dev \
10+
imagemagick-webp \
11+
libwebp \
12+
libwebp-dev \
13+
libtool \
14+
&& pecl install imagick \
15+
&& docker-php-ext-enable imagick
16+
17+
COPY . /var/task

backend/staging.Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM laravelphp/vapor:php83
2+
3+
# Install ImageMagick with WebP support
4+
# The imagemagick-webp package provides WebP delegate support
5+
RUN apk add --update --no-cache \
6+
autoconf \
7+
g++ \
8+
imagemagick \
9+
imagemagick-dev \
10+
imagemagick-webp \
11+
libwebp \
12+
libwebp-dev \
13+
libtool \
14+
&& pecl install imagick \
15+
&& docker-php-ext-enable imagick
16+
17+
COPY . /var/task

backend/vapor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ environments:
77
memory: 2048
88
cli-memory: 512
99
storage: hievents-assets-prod
10-
runtime: 'php-8.3:al2'
10+
runtime: docker
1111
warm: 3
1212
cache: hievents-redis
1313
database: hievents-postgres
@@ -27,7 +27,7 @@ environments:
2727
domain: staging-api.hi.events
2828
memory: 1024
2929
cli-memory: 512
30-
runtime: 'php-8.3:al2'
30+
runtime: docker
3131
warm: 3
3232
cache: hievents-redis
3333
database: hievents-postgres

0 commit comments

Comments
 (0)