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

Fix: Reduce Docker Image Size #8

Open
Saurav-Pant opened this issue Oct 1, 2024 · 1 comment
Open

Fix: Reduce Docker Image Size #8

Saurav-Pant opened this issue Oct 1, 2024 · 1 comment

Comments

@Saurav-Pant
Copy link

Size of Docker Image can be less by

  • Using jdk-slim which contains essential stuff
  • Implementing Multi Stage Build

From [1.11GB -> 233MB]

Anurag

# Updated Dockerfile

FROM openjdk:11-jdk-slim AS build
WORKDIR /app
COPY . .
RUN chmod +x tangerinekv-server.sh

FROM openjdk:11-jdk-slim
WORKDIR /app
COPY --from=build /app /app
CMD ["./tangerinekv-server.sh"]
EXPOSE 1111

If you think this is beneficial, I can raise a PR.

@anuragts
Copy link
Owner

anuragts commented Feb 9, 2025

Sure, you can raise a PR

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

No branches or pull requests

2 participants