23 lines
567 B
Docker
Executable File
23 lines
567 B
Docker
Executable File
FROM php:8.4-apache
|
|
|
|
ENV TZ=Europe/Vienna
|
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
libzip-dev \
|
|
unzip \
|
|
&& docker-php-ext-install zip mysqli pdo pdo_mysql \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Install Composer from the official image
|
|
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
|
|
|
|
# Set the working directory inside the container
|
|
WORKDIR /var/www/html
|
|
COPY ./src /var/www/html/
|
|
|
|
RUN chown -R www-data:www-data /var/www/html
|
|
|
|
EXPOSE 80
|
|
CMD ["apache2-foreground"]
|