diff --git a/Dockerfile b/Dockerfile index 554c3be..202e4e0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # http://product_installation_URL/?admin # Default login is "admin", password is "12345". -FROM alpine:latest +FROM alpine:3.7 MAINTAINER Andrey Arapov # Install the dependencies @@ -31,12 +31,12 @@ RUN mkdir -p /var/log/rainloop /var/lib/nginx/tmp && \ # Obtain the latest version of the RainLoop Webmail Community edition, # verify its integrity using GnuPG and then decompress it USER $USER -ENV RLFILE rainloop-community-latest.zip -ENV RLFILESIG rainloop-community-latest.zip.asc +ENV RLFILE rainloop-1.11.3.zip +ENV RLFILESIG rainloop-1.11.3.zip.asc ENV FINGERPRINT "3B797ECE694F3B7B70F311A4ED7C49D987DA4591" WORKDIR $DATA -RUN wget -O $RLFILE https://www.rainloop.net/repository/webmail/$RLFILE && \ - wget -O $RLFILESIG https://www.rainloop.net/repository/webmail/$RLFILESIG && \ +RUN wget -O $RLFILE https://github.com/RainLoop/rainloop-webmail/releases/download/v1.11.3/$RLFILE && \ + wget -O $RLFILESIG https://github.com/RainLoop/rainloop-webmail/releases/download/v1.11.3/$RLFILESIG && \ export GNUPGHOME="$(mktemp -d)" && \ gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$FINGERPRINT" && \ gpg --batch --verify $RLFILESIG $RLFILE && \ diff --git a/Makefile b/Makefile index d0a1168..e3b40a2 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,14 @@ NS ?= andrey01 NAME ?= rainloop -VERSION ?= 0.1 +VERSION ?= 1.11.3 default: build build: - docker build --pull -t $(NS)/$(NAME):$(VERSION) -t $(NS)/$(NAME):latest -f Dockerfile . + docker build --pull -t $(NS)/$(NAME):$(VERSION) -f Dockerfile . publish: docker push $(NS)/$(NAME):$(VERSION) - docker push $(NS)/$(NAME):latest check: docker run --rm -i $(NS)/$(NAME):$(VERSION) sh -c "set -x; exit 0" @@ -18,4 +17,4 @@ console: docker run --rm -ti --entrypoint sh $(NS)/$(NAME):$(VERSION) clean: - docker rmi $(NS)/$(NAME):$(VERSION) $(NS)/$(NAME):latest + docker rmi $(NS)/$(NAME):$(VERSION)