mirror of
https://github.com/edufeed-org/amb-api.git
synced 2025-12-07 23:34:33 +00:00
17 lines
287 B
Docker
17 lines
287 B
Docker
# Use a minimal OpenJDK runtime image
|
|
FROM openjdk:17-jdk-slim
|
|
|
|
# Set the working directory
|
|
WORKDIR /app
|
|
|
|
# Copy the Uberjar into the image
|
|
COPY target/app.jar .
|
|
COPY resources ./resources
|
|
|
|
# Expose the application's port
|
|
EXPOSE 8890
|
|
|
|
# Run the Uberjar
|
|
CMD ["java", "-jar", "app.jar"]
|
|
|
|
|