Skip to content

Commit

Permalink
refactor: improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ictorn committed May 14, 2024
1 parent a46dadd commit 4d88d32
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions agma/server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
FROM dunglas/frankenphp:1.1.4-php8.3.6-alpine
FROM dunglas/frankenphp:1.1.5-php8.3.7-alpine

RUN set -xe && install-php-extensions opcache sockets pcntl pdo_pgsql pdo_sqlsrv gd decimal bcmath intl zip soap \
&& chmod 777 /etc/caddy
RUN set -xe \
&& install-php-extensions opcache sockets pcntl pdo_pgsql pdo_sqlsrv gd decimal bcmath intl zip soap \
&& setcap -r /usr/local/bin/frankenphp

COPY config/php.ini /usr/local/etc/php/php.ini
COPY config/Caddyfile /etc/caddy/Caddyfile
COPY config/Caddyfile /config/Caddyfile

HEALTHCHECK NONE

ENTRYPOINT ["/usr/local/bin/frankenphp"]
CMD ["run", "--config", "/etc/caddy/Caddyfile", "--adapter", "caddyfile"]
CMD ["run", "--config", "/config/Caddyfile", "--adapter", "caddyfile"]

EXPOSE 8443
2 changes: 1 addition & 1 deletion agma/server/config/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

encode zstd br gzip

tls /etc/caddy/cert/tls.crt /etc/caddy/cert/tls.key
tls /config/cert/tls.crt /config/cert/tls.key

php_server {
resolve_root_symlink
Expand Down

0 comments on commit 4d88d32

Please sign in to comment.