From 0bcb552f6f8e3d2cb74b8a0cdd161c8e55a3c70c Mon Sep 17 00:00:00 2001 From: Christopher Hoskin Date: Wed, 6 May 2020 11:59:42 +0100 Subject: [PATCH] Try making the base image tag specifiable --- server-ce/Dockerfile | 3 ++- server-ce/Makefile | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server-ce/Dockerfile b/server-ce/Dockerfile index c4478b6b29..a8798a9e6c 100644 --- a/server-ce/Dockerfile +++ b/server-ce/Dockerfile @@ -2,7 +2,8 @@ # Overleaf Community Edition (overleaf/overleaf) # --------------------------------------------- -FROM sharelatex/sharelatex-base:latest +ARG SHARELATEX_BASE_TAG=sharelatex/sharelatex-base:latest +FROM $SHARELATEX_BASE_TAG ENV SHARELATEX_CONFIG /etc/sharelatex/settings.coffee diff --git a/server-ce/Makefile b/server-ce/Makefile index f73a49a8bc..55eca07ac2 100644 --- a/server-ce/Makefile +++ b/server-ce/Makefile @@ -8,7 +8,7 @@ build-base: build-community: - docker build -f Dockerfile -t $(SHARELATEX_TAG) . + docker build --build-arg SHARELATEX_BASE_TAG=$(SHARELATEX_BASE_TAG) -f Dockerfile -t $(SHARELATEX_TAG) . PHONY: build-base build-community