Skip to content

Commit

Permalink
Merge pull request #2 from SimonFrank14/docker-image
Browse files Browse the repository at this point in the history
fixed file system permission issue
  • Loading branch information
SimonFrank14 authored Aug 11, 2024
2 parents b3060a3 + 15d9a26 commit 8e63c14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ WORKDIR /var/www/html
COPY . .

# Install PHP dependencies including symfony/runtime
RUN composer install --classmap-authoritative --no-scripts
RUN composer install --no-dev --classmap-authoritative --no-scripts

FROM base AS runner

Expand Down
4 changes: 4 additions & 0 deletions startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ if [ ! -e $CONTAINER_ALREADY_STARTED ]; then
npm run build
php bin/console assets:install

# Grant write permissions to the storage and bootstrap/cache directories
chown -R www-data:www-data /var/www/html/var
chown -R www-data:www-data /var/www/html/files

# Check if the SAML certificate does not exist
if [ ! -f /var/www/html/certs/sp.crt ] || [ ! -f /var/www/html/certs/sp.key ]; then
echo "Creating SAML certificate..."
Expand Down

0 comments on commit 8e63c14

Please sign in to comment.