fix(Dockerfile): checkout master
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6609d2528e
commit
44b0814504
15
Dockerfile
15
Dockerfile
@ -51,15 +51,18 @@ RUN set -ex; \
|
||||
| cut -d: -f1 \
|
||||
| sort -u \
|
||||
| xargs -rt apt-mark manual; \
|
||||
if [ ! -z ${POSTFIXADMIN_VERSION} ]; then \
|
||||
curl --fail --silent --show-error --location "https://github.com/postfixadmin/postfixadmin/archive/postfixadmin-${POSTFIXADMIN_VERSION}.tar.gz" --output postfixadmin.tar.gz; \
|
||||
tar --extract --file postfixadmin.tar.gz --directory /var/www/html --strip-components=1; \
|
||||
rm postfixadmin.tar.gz; \
|
||||
else \
|
||||
apt-get install --yes git; \
|
||||
git clone https://github.com/postfixadmin/postfixadmin.git /var/www/html; \
|
||||
fi; \
|
||||
apt-get purge --yes --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
|
||||
rm --recursive --force /var/lib/apt/lists/*
|
||||
|
||||
RUN set -eu; \
|
||||
curl --fail --silent --show-error --location "https://github.com/postfixadmin/postfixadmin/archive/postfixadmin-${POSTFIXADMIN_VERSION}.tar.gz" --output postfixadmin.tar.gz ; \
|
||||
tar --extract --file postfixadmin.tar.gz --directory /var/www/html --strip-components=1; \
|
||||
rm postfixadmin.tar.gz; \
|
||||
# Does not exist in tarball but is required
|
||||
mkdir --parents /var/www/html/templates_c; \
|
||||
RUN mkdir --parents /var/www/html/templates_c; \
|
||||
chown --recursive www-data:www-data /var/www/html
|
||||
|
||||
COPY entrypoint.sh /usr/local/bin/
|
||||
|
Loading…
Reference in New Issue
Block a user