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 Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,15 @@ RUN install-php-extensions xdebug sockets
#---------------------------------
FROM base AS composer

ARG FLUX_USERNAME
ARG FLUX_LICENSE_KEY

COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
COPY --chown=www-data:www-data composer.* ./
COPY --chown=www-data:www-data . .

RUN composer install --no-dev --no-interaction --no-scripts --prefer-dist \
RUN composer config http-basic.composer.fluxui.dev "${FLUX_USERNAME}" "${FLUX_LICENSE_KEY}" \
&& composer install --no-dev --no-interaction --no-scripts --prefer-dist \
&& composer dump-autoload --classmap-authoritative --no-dev --optimize

#---------------------------------
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ services:
args:
NODE_VERSION: 22
PHP_VERSION: 8.4
FLUX_USERNAME: ${FLUX_USERNAME}
FLUX_LICENSE_KEY: ${FLUX_LICENSE_KEY}
image: laravelcm/php
restart: always
extra_hosts:
Expand Down