From f18ee5c44c95e9738e83fc22d949e7df77f64f28 Mon Sep 17 00:00:00 2001 From: paul Date: Sat, 14 Nov 2020 01:28:30 +0100 Subject: [PATCH] Persist ARG to runtime. ARG war reset after building, so the entrypoint did not get the environment variables as expected. --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a280fa9..e1bfde2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,9 @@ ARG FORGE=10.13.4.1641 ENV \ ForgeUrl1=http://files.minecraftforge.net/maven/net/minecraftforge/forge/${MINECRAFT}-${FORGE}/forge-${MINECRAFT}-${FORGE}-installer.jar \ ForgeUrl2=http://files.minecraftforge.net/maven/net/minecraftforge/forge/${MINECRAFT}-${FORGE}-${MINECRAFT}/forge-${MINECRAFT}-${FORGE}-${MINECRAFT}-installer.jar \ - InstallerJar=forge-${MINECRAFT}-${FORGE}-installer.jar + InstallerJar=forge-${MINECRAFT}-${FORGE}-installer.jar \ + MINECRAFT=$MINECRAFT \ + FORGE=$FORGE ENV \ INSTDIR=/usr/share/minecraft \