Skip to content

Commit

Permalink
fix: docker container init banner folder
Browse files Browse the repository at this point in the history
  • Loading branch information
blt950 committed Aug 2, 2024
1 parent d2e0864 commit 56fc8b5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@ COPY --from=frontend --chown=www-data:www-data /app/public/ /app/public/

WORKDIR /app

# Ensure the storage and cache directories have the correct permissions
RUN chmod -R 755 storage bootstrap/cache && \
composer install --no-dev --no-interaction --prefer-dist && \
mkdir -p /app/storage/app/public/files
composer install --no-dev --no-interaction --prefer-dist && \
mkdir -p /app/storage/app/public/banners && \
chmod -R 775 /app/storage

# Wrap around the default PHP entrypoint with a custom entrypoint
COPY ./container/entrypoint.sh /usr/local/bin/service-entrypoint
ENTRYPOINT [ "service-entrypoint" ]
CMD ["apache2-foreground"]
CMD ["apache2-foreground"]

0 comments on commit 56fc8b5

Please sign in to comment.