mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-22 23:10:52 +01:00
Merge branch 'beta-branch' into 'dev'
Add Docker support See merge request morningstar/Arcturus-Community!368
This commit is contained in:
commit
55aa890268
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
FROM maven:latest AS builder
|
||||||
|
|
||||||
|
# Copy the Emulator sources to the container
|
||||||
|
COPY . .
|
||||||
|
# Package it
|
||||||
|
RUN mvn package && mv /target/Habbo*-with-dependencies.jar /target/Habbo.jar
|
||||||
|
|
||||||
|
# Use Java 8 for running
|
||||||
|
FROM java:8 AS runner
|
||||||
|
|
||||||
|
# Copy the generated source
|
||||||
|
COPY --from=builder /target/Habbo.jar /
|
||||||
|
|
||||||
|
# Save the script to wait for the database, among running the Arcturus Emulator
|
||||||
|
RUN echo "#!/bin/bash \n java -jar /Habbo.jar" > /entrypoint.sh
|
||||||
|
RUN chmod +x /entrypoint.sh
|
||||||
|
|
||||||
|
# Run the Emulator with Java
|
||||||
|
ENTRYPOINT ["/entrypoint.sh"]
|
Loading…
Reference in New Issue
Block a user