Skip to content

How to cache Downloading Forge installer and Running Forge installer using Docker multi-stage builds? #2120

Answered by itzg
solzard asked this question in Q&A
Discussion options

You must be logged in to vote

I generally don't recommend building a Dockerfile upon something other than an OS/language base image; however, given how incredibly slow RaspberryPi's are to run, the caching strategy is very useful.

Since /data is a volume and volumes are not persisted in build images, you have to get creative with preparing, persisting, and using the content. Also, no need to re-invent the wheel -- use MODPACK to grab the mods zip.

Let me know if you have any questions about why/what I did in the following example:

FROM itzg/minecraft-server:java8-multiarch AS prep

ARG MODPACK=https://github.com/arpruss/raspberryjammod/releases/download/0.94/mods.zip
# NOTE: didn't resolve when named VERSION
ARG MC_VE…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@solzard
Comment options

@itzg
Comment options

itzg May 7, 2023
Maintainer

Answer selected by solzard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants