Skip to content
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

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

veronoicc
Copy link

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

Dockerfile Show resolved Hide resolved
.github/workflows/build-docker.yml Outdated Show resolved Hide resolved
.github/workflows/build-docker.yml Outdated Show resolved Hide resolved
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"]
Copy link
Contributor

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.

Copy link
Member

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.

Copy link
Author

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

Dockerfile Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants