Created
July 12, 2025 18:09
-
-
Save pratikngupta/21229db0b1d7cb97f3d07a2fcfac6959 to your computer and use it in GitHub Desktop.
java, python and go dockerfile
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
FROM alpine:latest | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN apk update && \ | |
apk add --no-cache \ | |
go \ | |
python3 \ | |
py3-pip \ | |
openjdk21-jdk \ | |
build-base \ | |
curl \ | |
bash && \ | |
\ | |
# Clean up apk cache to reduce image size | |
rm -rf /var/cache/apk/* | |
WORKDIR /app | |
CMD ["/bin/bash", "-c", "echo \"\n--- Alpine Linux Version ---\n\" && cat /etc/alpine-release && \ | |
echo \"\n--- Go Version ---\n\" && go version && \ | |
echo \"\n--- Python Version ---\n\" && python3 --version && \ | |
echo \"\n--- Pip Version ---\n\" && pip3 --version && \ | |
echo \"\n--- Java Version ---\n\" && java -version && \ | |
echo \"\n----------------------------------\nContainer Ready!\n----------------------------------\n\" && bash"] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment