mirror of
https://github.com/jgeusebroek/docker-spotweb.git
synced 2025-06-04 22:57:25 +02:00
37 lines
1.1 KiB
Docker
37 lines
1.1 KiB
Docker
FROM ubuntu:17.10
|
|
MAINTAINER Jeroen Geusebroek <me@jeroengeusebroek.nl>
|
|
|
|
ENV DEBIAN_FRONTEND="noninteractive" \
|
|
TERM="xterm" \
|
|
APTLIST="apache2 php7.1 php7.1-curl php7.1-gd php7.1-gmp php7.1-mysql php7.1-pgsql php7.1-xml php7.1-xmlrpc php7.1-mbstring php7.1-zip git-core cron" \
|
|
REFRESHED_AT='2018-04-18'
|
|
|
|
RUN echo "force-unsafe-io" > /etc/dpkg/dpkg.cfg.d/02apt-speedup &&\
|
|
echo "Acquire::http {No-Cache=True;};" > /etc/apt/apt.conf.d/no-cache && \
|
|
apt-get -q update && \
|
|
apt-get -qy dist-upgrade && \
|
|
apt-get install -qy $APTLIST && \
|
|
\
|
|
# Cleanup
|
|
apt-get -y autoremove && \
|
|
apt-get -y clean && \
|
|
rm -rf /var/lib/apt/lists/* && \
|
|
rm -r /var/www/html && \
|
|
rm -rf /tmp/*
|
|
|
|
RUN git clone -b master --single-branch https://github.com/spotweb/spotweb.git /var/www/spotweb && \
|
|
rm -rf /var/www/spotweb/.git && \
|
|
chmod -R 775 /var/www/spotweb && \
|
|
chown -R www-data:www-data /var/www/spotweb
|
|
|
|
COPY ./entrypoint.sh /entrypoint.sh
|
|
RUN chmod u+x /entrypoint.sh
|
|
|
|
COPY files/000-default.conf /etc/apache2/sites-enabled/000-default.conf
|
|
|
|
VOLUME [ "/config" ]
|
|
|
|
EXPOSE 80
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|