-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile-mc
44 lines (33 loc) · 1.63 KB
/
Dockerfile-mc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# syntax=docker/dockerfile:1
FROM debian:stable-slim AS build
ARG bedrock_bone_meal_version=1.2.1+1.20
RUN apt-get update \
&& apt-get install zip wget ca-certificates -y --no-install-recommends \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY datapacks /datapacks
RUN cd /datapacks/ocw-stuff \
&& zip -r ocw-stuff.zip . \
&& mv ocw-stuff.zip /datapacks \
&& cd /datapacks/who-did-this \
&& zip -r who-did-this.zip . \
&& mv who-did-this.zip /datapacks \
&& cd /datapacks/custom-compostables \
&& zip -r custom-compostables.zip . \
&& mv custom-compostables.zip /datapacks
RUN wget -O /datapacks/bedrock-bone-meal.zip https://github.com/Nincodedo/mc-java-bedrock-bone-meal-datapack/releases/download/$bedrock_bone_meal_version/bedrock-bone-meal-$bedrock_bone_meal_version.zip
FROM itzg/minecraft-server:2024.10.2
ENV MODRINTH_PROJECTS=fabric-api,cloth-config,lithium,ferrite-core,starlight,fastback,chunky,no-chat-reports,disableinsecurechattoast,inventory-sorting,jamlib,architectury-api,rightclickharvest,jade,rei,memoryleakfix,mc-server-description
ENV DATAPACKS=/datapacks/ocw-stuff.zip,/datapacks/who-did-this.zip,/datapacks/bedrock-bone-meal.zip,/datapacks/custom-compostables.zip
RUN mkdir -p /datapacks
COPY --from=build /datapacks/*.zip /datapacks
ENV VANILLATWEAKS_FILE=/vt/craftingtweaks.json,/vt/datapacks.json
RUN mkdir -p /vt
COPY rhc/vt/*.json /vt
RUN mkdir -p /patches
COPY rhc/patches/*.json /patches
ENV PATCH_DEFINITIONS=/patches
ENV REPLACE_ENV_VARIABLES=true
ENV REPLACE_ENV_DURING_SYNC=true
ENV SYNC_SKIP_NEWER_IN_DESTINATION=false
LABEL org.opencontainers.image.source="https://github.com/Nincodedo/rhc-ocw"