phar
All checks were successful
Build, Push, Publish / Build & Release (push) Successful in 22m31s

This commit is contained in:
2025-12-09 21:18:18 -03:00
parent e6779edec7
commit 1e95a3cf07
3 changed files with 4 additions and 3 deletions

View File

@@ -16,6 +16,8 @@ RUN apk add --no-cache --update nginx \
# Copy dependencies from vendor stage # Copy dependencies from vendor stage
COPY --from=vendor /app/vendor /var/www/html/vendor COPY --from=vendor /app/vendor /var/www/html/vendor
# Copy aws.phar
COPY vendor/aws.phar /var/www/html/vendor/aws.phar
# Copy application code # Copy application code
COPY . /var/www/html/ COPY . /var/www/html/

View File

@@ -4,7 +4,6 @@
"type": "project", "type": "project",
"require": { "require": {
"php": "^8.2", "php": "^8.2",
"aws/aws-sdk-php": "^3.300",
"ext-pdo": "*", "ext-pdo": "*",
"ext-curl": "*", "ext-curl": "*",
"ext-json": "*" "ext-json": "*"

View File

@@ -1,7 +1,7 @@
<?php <?php
// --- MariaDB Settings --- // --- MariaDB Settings ---
require_once __DIR__ . '/vendor/autoload.php'; require_once __DIR__ . '/vendor/aws.phar';
define('DB_HOST', getenv('DB_SERVER') ?: '127.0.0.1'); define('DB_HOST', getenv('DB_SERVER') ?: '127.0.0.1');
define('DB_NAME', getenv('DB_NAME') ?: 'YOURDBNAME'); define('DB_NAME', getenv('DB_NAME') ?: 'YOURDBNAME');