diff --git a/deploy/docker/Dockerfile.bitmap b/deploy/docker/Dockerfile.bitmap index 5a079ccb..2fcd95ba 100644 --- a/deploy/docker/Dockerfile.bitmap +++ b/deploy/docker/Dockerfile.bitmap @@ -49,7 +49,9 @@ ENV RYLWEEN_BITMAP_SAVE_FILE=/data/saves/world.rsave ENV RYLWEEN_AUTH_SECURE_COOKIES=true WORKDIR /app -COPY --from=builder /src/runtimes/runtime-bitmap-web/build/install/rylween-bitmap-web /app/rylween-bitmap-web +# --link builds this layer apart from the JRE under it, so the amd64 and arm64 +# images share one copy of the game instead of storing it twice. +COPY --link --from=builder /src/runtimes/runtime-bitmap-web/build/install/rylween-bitmap-web /app/rylween-bitmap-web ENV PATH="/app/rylween-bitmap-web/bin:${PATH}" VOLUME ["/data"]