Added configureable base image to minecraft containers

This commit is contained in:
Jef Roosens 2021-02-02 12:56:54 +01:00
parent cc754571de
commit 6902926bc9
9 changed files with 37 additions and 7 deletions

View file

@ -1,4 +1,8 @@
FROM openjdk:11-jre-slim
ARG BASE_IMAGE
# We use ${:-} instead of a default value because the argument is always passed
# to the build, it'll just be blank most likely
FROM ${BASE_IMAGE:-'openjdk:11-jre-slim'}
# Build arguments
ARG MC_VERSION