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
6 changes: 5 additions & 1 deletion frankenphp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ COPY --link ./frankenphp/php.ini-development ${PHP_INI_DIR}/php.ini
#
FROM base AS composer-builder

COPY --link ./composer.json ./composer.lock ./

RUN install-php-extensions \
@composer && \
composer install -n --no-cache --prefer-dist --no-dev --no-scripts -o -a;
Expand All @@ -64,6 +66,8 @@ RUN mv ${PHP_INI_DIR}/php.ini-production ${PHP_INI_DIR}/php.ini;
# Replace the official binary by the one containing our custom modules
# COPY --from=caddy-builder /usr/local/bin/frankenphp /usr/local/bin/frankenphp
COPY --link ./docker/frankenphp/Caddyfile /etc/caddy/Caddyfile
# COPY --link --chmod=755 ./docker/frankenphp/docker-php-entrypoint.sh /usr/local/bin/docker-php-entrypoint
COPY --link --chmod=755 ./docker/frankenphp/docker-php-entrypoint.sh /usr/local/bin/docker-php-entrypoint

COPY . ./
COPY --link --from=composer-builder /app/vendor ./vendor
COPY --link .env.production .env
2 changes: 1 addition & 1 deletion frankenphp/docker-php-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

# first arg is `-f` or `--some-option`
if [ "${1#-}" != "$1" ]; then
set -- frankenphp "$@"
set -- frankenphp run "$@"
fi

# TODO: add deploy:setup command on first deployment
Expand Down