-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (33 loc) · 1.48 KB
/
Copy pathDockerfile
File metadata and controls
42 lines (33 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM ubuntu:26.04
LABEL Author="Jeroen Geusebroek <me@jeroengeusebroek.nl>"
ENV DEBIAN_FRONTEND="noninteractive" \
TERM="xterm" \
APTLIST="apache2 php8.5 php8.5-curl php8.5-gd php8.5-gmp php8.5-mysql php8.5-pgsql php8.5-xml php8.5-xmlrpc php8.5-mbstring php8.5-zip git-core cron wget jq locales"
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 -qy install software-properties-common && \
apt-get -qy dist-upgrade && \
apt-get install -qy $APTLIST && \
a2enmod headers && \
locale-gen --no-purge nl_NL.UTF-8 en_US.UTF-8 && \
\
# 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 --no-checkout -b develop --depth 1 --single-branch https://github.com/spotweb/spotweb.git /var/www/spotweb
RUN cd /var/www/spotweb; git config core.symlinks false && git checkout
RUN 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
# Add caching and compression config to .htaccess
COPY files/001-htaccess.conf .
RUN cat /001-htaccess.conf >> /var/www/spotweb/.htaccess
RUN rm /001-htaccess.conf
VOLUME [ "/config" ]
EXPOSE 80
ENTRYPOINT ["/entrypoint.sh"]