-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
51 lines (41 loc) · 1.59 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
41
42
43
44
45
46
47
48
49
50
51
FROM eclipse-temurin:21-jdk-jammy AS builder
ARG VERSION=dev
RUN mkdir -p /tmp/serverpackcreator/java
WORKDIR /tmp/serverpackcreator
COPY / /tmp/serverpackcreator
RUN \
apt-get update && apt-get install dos2unix -y && \
dos2unix gradlew && chmod +x gradlew && \
sh gradlew -Pversion="$VERSION" \
build --info --full-stacktrace \
-x :serverpackcreator-api:test -x :serverpackcreator-app:test
FROM ghcr.io/linuxserver/baseimage-ubuntu:jammy-version-102276d2
ARG VERSION=dev
ENV LOG4J_FORMAT_MSG_NO_LOOKUPS=true
LABEL maintainer="Griefed <[email protected]>"
LABEL source="https://github.com/Griefed/ServerPackCreator"
LABEL license="GNU LGPLv2.1"
LABEL issues="https://github.com/Griefed/ServerPackCreator/issues"
LABEL help="https://help.serverpackcreator.de/help-topic.html"
LABEL support="https://discord.griefed.de"
LABEL homepage="https://serverpackcreator.de"
LABEL version=$VERSION
LABEL description="Create a server pack from a Minecraft Forge, NeoForge, Fabric, LegacyFabric or Quilt modpack!"
RUN \
echo "**** Bring system up to date ****" && \
apt-get update && apt-get upgrade -y && \
apt-get install -y \
libatomic1 \
openjdk-21-jdk-headless && \
echo "**** Creating our folder(s) ****" && \
mkdir -p \
/app/serverpackcreator/java && \
echo "**** Cleanup ****" && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf \
/root/.cache \
/tmp/*
COPY --chmod=777 root/ /
COPY --from=builder --chmod=777 /tmp/serverpackcreator/serverpackcreator-app/build/libs/serverpackcreator-app-$VERSION.jar /app/serverpackcreator/serverpackcreator.jar
EXPOSE 8080