Skip to content

Commit eabeedc

Browse files
committed
This is how this works now it seems
1 parent 4f8d2e8 commit eabeedc

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

Dockerfile

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
FROM eclipse-temurin:21-jdk
22

3-
RUN mkdir /bot
4-
RUN mkdir /data
3+
RUN mkdir -p /bot
4+
RUN mkdir -p /data
5+
RUN mkdir -p /dist/out
56

6-
COPY build/libs/LilyBot-*-all.jar /usr/local/lib/LilyBot.jar
7+
COPY [ "build/distributions/LilyBot-*.tar", "/dist" ]
8+
9+
RUN tar -xf /dist/LilyBot-*.tar -C /dist/out
10+
RUN chmod +x /dist/out/LilyBot-*/bin/LilyBot
11+
12+
RUN rm /dist/LilyBot*.tar
13+
14+
WORKDIR /bot
715

816
# Only place env vars below that are fine to be publicised. Private stuff needs to be
917
# applied deployment-side.
@@ -15,4 +23,4 @@ ENV ENVIRONMENT=production
1523

1624
WORKDIR /bot
1725

18-
ENTRYPOINT ["java", "-Xms2048M", "-Xmx3072M", "-XX:+DisableExplicitGC", "-jar", "/usr/local/lib/LilyBot.jar"]
26+
ENTRYPOINT [ "/dist/out/LilyBot-*/bin/LilyBot" ]

0 commit comments

Comments
 (0)