Skip to content

Commit

Permalink
try minecraft
Browse files Browse the repository at this point in the history
  • Loading branch information
iiamabby committed Oct 23, 2023
1 parent 61aba4f commit bf71c10
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,14 @@ COPY modules /tmp/modules/
COPY --from=docker.io/mikefarah/yq /usr/bin/yq /usr/bin/yq
# Install Java
RUN rpm-ostree install -y java-17-openjdk
RUN export PATH="/usr/lib/jvm/java-17-openjdk-17.x.y.z/bin:$PATH"
RUN export PATH="/usr/lib/jvm/java-17-openjdk-17.0.8.0.7-1.fc38.x86_64/bin:$PATH"

#install minecraft
RUN mkdir /usr/local/bin/minecraftforge && \
cd /usr/local/bin/minecraftforge && \
wget "https://maven.minecraftforge.net/net/minecraftforge/forge/1.20.1-47.2.0/forge-1.20.1-47.2.0-mdk.zip" -O temp.zip && \
unzip temp.zip && \
rm temp.zip

# Run the build script, then clean up temp files and finalize container build.
RUN chmod +x /tmp/build.sh && /tmp/build.sh && \
Expand Down

0 comments on commit bf71c10

Please sign in to comment.