forked from Griefed/ServerPackCreator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (33 loc) · 1.45 KB
/
Dockerfile
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
FROM ghcr.io/griefed/baseimage-ubuntu-jdk17-kotlin:1.0.4
ARG VERSION=dev
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2
ENV LOG4J_FORMAT_MSG_NO_LOOKUPS=true
LABEL maintainer="Griefed <griefed@griefed.de>"
LABEL source="https://github.com/Griefed/ServerPackCreator"
LABEL license="GNU LGPLv2.1"
LABEL issues="https://github.com/Griefed/ServerPackCreator/issues"
LABEL help="https://wiki.griefed.de/en/Documentation/ServerPackCreator/ServerPackCreator-Help"
LABEL support="https://discord.griefed.de"
LABEL homepage="https://griefed.de/#/serverpackcreator"
LABEL version=$VERSION
LABEL description="Create a server pack from a Minecraft Forge, Fabric or Quilt modpack!"
RUN \
echo "**** Bring system up to date ****" && \
apt-get update && apt-get upgrade -y && \
apt-get install --no-install-recommends -y \
libatomic1 && \
echo "**** Creating our folder(s) ****" && \
mkdir -p \
/app/serverpackcreator && \
mkdir \
/server-packs && \
echo "**** Cleanup ****" && \
rm -rf \
/root/.cache \
/tmp/*
COPY root/ /
COPY --chown=grfd:grfd serverpackcreator-app/build/libs/serverpackcreator-app-${VERSION}.jar /app/serverpackcreator/serverpackcreator.jar
COPY --chown=grfd:grfd serverpackcreator-api/src/jvmMain/resources/de/griefed/resources/server_files /defaults/server_files
COPY --chown=grfd:grfd serverpackcreator-api/src/jvmMain/resources/de/griefed/resources/serverpackcreator.conf /defaults/serverpackcreator.conf
VOLUME /data /server-packs
EXPOSE 8080