mirror of
https://github.com/edufeed-org/amb-api.git
synced 2025-12-10 00:34:33 +00:00
Add build options and docker, make relay info available through env
This commit is contained in:
parent
e5ff9265b4
commit
a34d07d365
10 changed files with 158 additions and 67 deletions
17
Dockerfile
Normal file
17
Dockerfile
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# 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"]
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue