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 \
|
| cut -d: -f1 \
|
||||||
| sort -u \
|
| sort -u \
|
||||||
| xargs -rt apt-mark manual; \
|
| 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; \
|
apt-get purge --yes --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
|
||||||
rm --recursive --force /var/lib/apt/lists/*
|
rm --recursive --force /var/lib/apt/lists/*
|
||||||
|
|
||||||
RUN set -eu; \
|
RUN mkdir --parents /var/www/html/templates_c; \
|
||||||
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; \
|
|
||||||
chown --recursive www-data:www-data /var/www/html
|
chown --recursive www-data:www-data /var/www/html
|
||||||
|
|
||||||
COPY entrypoint.sh /usr/local/bin/
|
COPY entrypoint.sh /usr/local/bin/
|
||||||
|
1
Makefile
1
Makefile
@ -20,7 +20,6 @@ PHONY:=container-image/build
|
|||||||
container-image/build:
|
container-image/build:
|
||||||
${CONTAINER_RUNTIME} build \
|
${CONTAINER_RUNTIME} build \
|
||||||
--build-arg POSTFIXADMIN_VERSION=${POSTFIXADMIN_VERSION} \
|
--build-arg POSTFIXADMIN_VERSION=${POSTFIXADMIN_VERSION} \
|
||||||
--build-arg POSTFIXADMIN_SHA512=${POSTFIXADMIN_SHA512} \
|
|
||||||
--file Dockerfile \
|
--file Dockerfile \
|
||||||
--no-cache \
|
--no-cache \
|
||||||
--pull \
|
--pull \
|
||||||
|
Loading…
Reference in New Issue
Block a user