- Added new font files: Cakedingbats (TTF, WOFF, WOFF2) and Raleway (various styles and encodings). - Included new images: cake-logo.png, cake.icon.png, cake.logo.svg, and cake.power.gif. - Created initial index.php file for handling requests in CakePHP framework. - Added .gitkeep file in the js directory to maintain the folder structure.
30 lines
660 B
Docker
30 lines
660 B
Docker
# Minimalny Dockerfile dla aplikacji CakePHP
|
|
FROM php:8.2-apache
|
|
|
|
# Instalacja rozszerzeń PHP wymaganych przez CakePHP
|
|
RUN docker-php-ext-install pdo pdo_mysql mbstring intl
|
|
|
|
# Skopiuj pliki aplikacji do katalogu serwera
|
|
COPY . /var/www/html/
|
|
|
|
# Ustaw katalog roboczy
|
|
WORKDIR /var/www/html
|
|
|
|
# Ustaw uprawnienia
|
|
RUN chown -R www-data:www-data /var/www/html
|
|
|
|
# Włącz mod_rewrite dla CakePHP
|
|
RUN a2enmod rewrite
|
|
|
|
# Skonfiguruj Apache dla CakePHP
|
|
RUN echo '<Directory /var/www/html>
|
|
AllowOverride All
|
|
</Directory>' > /etc/apache2/conf-available/cakephp.conf \
|
|
&& a2enconf cakephp
|
|
|
|
# Domyślny port
|
|
EXPOSE 80
|
|
|
|
# Uruchom Apache
|
|
CMD ["apache2-foreground"]
|