Last active
May 8, 2025 01:36
-
-
Save TyeolRik/55c47cd6ceecef52385472759c2d933a to your computer and use it in GitHub Desktop.
Dockerfile for developing java17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# rik.baek Development Environment | |
## Commands | |
# podman volume create devVolume # 만약, volume 있으면 무시 | |
# podman build -t rik.baek.dev.java17:17-jdk-slim -f Dockerfile.rik.baek.java17 . | |
# podman create -v devVolume:/root/devel/ --pids-limit=-1 --name devJava17 --network host rik.baek.dev.java17:17-jdk-slim | |
# podman start devJava17 && podman exec -it devJava17 /bin/bash | |
FROM docker.io/library/openjdk:17-jdk-slim | |
# Setup git and credential | |
RUN apt update && apt install -y git | |
RUN mkdir -p /root/.ssh/ && \ | |
ssh-keyscan github.com >> /root/.ssh/known_hosts | |
COPY id_ed25519 id_ed25519.pub /root/.ssh/ | |
RUN git config --global user.email "[email protected]" && git config --global user.name "rik.baek" | |
RUN mkdir -p /root/devel/ && cd /root/devel/ && git clone [email protected]:ia-cloud-side/======MASKED======.git | |
CMD [ "/bin/bash" ] | |
ENTRYPOINT [ "tail", "-f", "/dev/null" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
id_ed25519 id_ed25519.pub 이 같은 폴더에 존재한다는 전제