Dockerfile: use a JRE base image for the runtime stage

Open Beginner friendly
#2,199 1 comment 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
76/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
docker, java
Domain
build-system

Research direction

Start with the repository’s Dockerfile and locate the runtime stage using eclipse-temurin:17-jdk-noble. Switch that stage to the JRE base image, then compare image sizes and run the validator on a sample feed as the issue proposes; done when the validator works and the runtime image is smaller.

Written by the indexing model from the issue text.

Description

The runtime stage of the Dockerfile uses eclipse-temurin:17-jdk-noble, but the image only runs the CLI jar, so a JRE is sufficient. Switching to eclipse-temurin:17-jre-noble should significantly reduce the image size and attack surface without changing behavior.

I would d like to open a PR for this. I'll compare image sizes before and after and run the validator on a sample feed to confirm it works.

Dominant language
Java
Stars
426
Forks
127
Avg merge
2d 10h
Merged PRs (30d)
27

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MobilityData/gtfs-validator

All issues in MobilityData/gtfs-validator

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.