-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Dockerfile and automated image building #213
base: main
Are you sure you want to change the base?
Conversation
FROM --platform=$TARGETPLATFORM eclipse-temurin:21-jre-alpine | ||
WORKDIR /app | ||
COPY --from=builder /build/build/libs/ViaProxy-*.jar ViaProxy.jar | ||
ENTRYPOINT ["java", "-jar", "ViaProxy.jar"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These java args are pretty barebones. You'd also want controllable RAM and gc flags.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default JVM arguments here would be G1GC with 2 GB of RAM allocated to it as far as i'm aware, however if needed then optimizations should be thought upon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think i should be able to make the args passed to java controllable with for example a JAVA_OPTS env variable
This adds a github action and a Dockerfile to build a container image for the app. It is then also hosted on the GitHub Container Registry