latest with succcessful docker

This commit is contained in:
Ronald A. Richardson
2023-05-16 18:16:24 +08:00
parent 91e4db07ec
commit b1ff553262
5 changed files with 14 additions and 10 deletions

View File

@@ -50,11 +50,6 @@ RUN mkdir -p ./storage/logs/ \
COPY api/composer.json api/composer.lock ./
RUN composer install --no-dev --no-scripts --no-autoloader
# Run Laravel migrations
RUN php artisan mysql:createdb \
&& php artisan migrate \
&& php artisan sandbox:migrate
# Copy application files
COPY --chown=www-data:nogroup . ./
@@ -99,4 +94,9 @@ CMD ["php", "api/artisan", "queue:work", "sqs"]
# Application stage
FROM base as app
ENTRYPOINT ["/sbin/ssm-parent", "-c", ".ssm-parent.yaml", "run", "--", "docker-php-entrypoint"]
CMD ["php-fpm"]
CMD ["php-fpm"]
# Migrations stage
FROM base as migrations
ENTRYPOINT ["/sbin/ssm-parent", "-c", ".ssm-parent.yaml", "run", "--", "docker-php-entrypoint"]
CMD ["php", "api/artisan", "mysql:createdb", "&&", "php", "api/artisan", "migrate", "&&", "php", "api/artisan", "sandbox:migrate"]

View File

@@ -39,4 +39,8 @@ git push origin dev-main
cd ../iam-engine
git add .
git commit -m 'latest'
git push origin dev-main
git push origin dev-main
cd ../fleetbase-extensions-indexer
git add .
git commit -m 'latest'
git push origin main