Add entrypoint script and update Dockerfile for proper initialization; modify Traefik labels for production environment
All checks were successful
Deploy Production (admin.merchbay.app) / deploy (push) Successful in 2m42s

This commit is contained in:
Frank John Begornia
2025-12-21 05:06:11 +08:00
parent 4ce000e95b
commit 678a8842f4
3 changed files with 33 additions and 8 deletions

View File

@@ -32,6 +32,10 @@ WORKDIR /var/www/html
# Copy existing application directory contents
COPY . /var/www/html
# Copy and set permissions for entrypoint script
COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
# Create storage directories and set permissions
RUN mkdir -p storage/framework/views \
storage/framework/cache \
@@ -67,5 +71,8 @@ RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
# Expose port 80
EXPOSE 80
# Set entrypoint
ENTRYPOINT ["docker-entrypoint.sh"]
# Start Apache
CMD ["apache2-foreground"]