FROMrust:slim-busterasbuilderRUNcargoinstallmineflake
FROMdebian:buster-slimasfinalENVMINEFLAKE_CACHE=/cache
RUNmkdir-p$MINEFLAKE_CACHECOPY--from=builder/usr/local/cargo/bin/mineflake/usr/local/bin/mineflake
COPYmineflake.yml/mineflake.yml
WORKDIR/data# This will download all dependencies and cache them in Docker layer.# So image can be run offline.RUNmineflakevendor
CMDmineflakeapply-r-c/mineflake.yml
Local packages in Dockerfile
Local packages are supported only if you COPY them to image at same path as in mineflake.yml.
Java is not included
If you need Java to run your server, you need to install it yourself. You can use openjdk:slim-buster image as base instead of debian:buster-slim.
This Dockerfile will build Mineflake image with mineflake.yml configuration and it dependencies.