4get-apache/Dockerfile

17 lines
583 B
Docker
Raw Normal View History

2025-01-06 22:35:23 -05:00
FROM alpine:latest
# Install necessary packages
RUN apk update && apk upgrade
RUN apk add php apache2-ssl php83-fileinfo php83-openssl php83-iconv php83-common php83-dom php83-sodium php83-curl curl php83-pecl-apcu php83-apache2 imagemagick php83-pecl-imagick php-mbstring imagemagick-webp imagemagick-jpeg shadow
2025-01-06 23:08:29 -05:00
# Copy needed files
2025-01-06 22:35:23 -05:00
COPY ./4get /var/www/html/4get/
COPY ./httpd.conf /etc/apache2/httpd.conf
COPY ./entrypoint.sh /entrypoint.sh
COPY ./gen_config.php /gen_config.php
2025-01-06 23:09:20 -05:00
# Set workdir to 4get directory
2025-01-06 22:35:23 -05:00
WORKDIR /var/www/html/4get
CMD ["sh", "-c", "sh /entrypoint.sh"]