-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
22 lines (22 loc) · 914 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM php:7.4.9-apache-buster
ENV DEBIAN_FRONTEND noninteractive
ARG GETSIMPLE_VERSION=3.3.16
WORKDIR /var/www/html
RUN apt-get update && \
apt-get -y install curl zip libzip-dev libgd-dev && \
apt-get -yq autoremove && \
apt-get clean && \
rm -rf /var/lib/{apt,dpkg,cache,log}
RUN curl -s -LO http://get-simple.info/data/uploads/releases/GetSimpleCMS-$GETSIMPLE_VERSION.zip && \
unzip GetSimpleCMS-$GETSIMPLE_VERSION.zip && \
mv GetSimpleCMS-$GETSIMPLE_VERSION/* . && \
rm -rf GetSimpleCMS-$GETSIMPLE_VERSION.zip GetSimpleCMS-$GETSIMPLE_VERSION/ && \
mv $PHP_INI_DIR/php.ini-development $PHP_INI_DIR/php.ini && \
docker-php-ext-configure gd \
--with-freetype=/usr/lib/ \
--with-jpeg=/usr/lib/ && \
docker-php-ext-configure zip && \
docker-php-ext-install -j$(nproc) gd opcache zip && \
a2enmod rewrite && \
chown -R www-data.www-data .
EXPOSE 80