mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-27 08:50:51 +01:00
20 lines
578 B
Docker
20 lines
578 B
Docker
FROM maven:latest AS builder
|
|
|
|
# Copy the Emulator sources to the container
|
|
COPY . .
|
|
# Package it
|
|
RUN mvn package && mv /target/Morningstar*-with-dependencies.jar /target/Morningstar.jar
|
|
|
|
# Use openjdk 11 for running
|
|
FROM openjdk:11 AS runner
|
|
|
|
# Copy the generated source
|
|
COPY --from=builder /target/Morningstar.jar /
|
|
|
|
# Save the script to wait for the database, among running the Arcturus Emulator
|
|
RUN echo "#!/bin/bash \n java -Dfile.encoding=UTF-8 -jar /Morningstar.jar" > /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
# Run the Emulator with Java
|
|
ENTRYPOINT ["/entrypoint.sh"]
|