Skip to content

Instantly share code, notes, and snippets.

@pratikngupta
Created July 12, 2025 18:09
Show Gist options
  • Save pratikngupta/21229db0b1d7cb97f3d07a2fcfac6959 to your computer and use it in GitHub Desktop.
Save pratikngupta/21229db0b1d7cb97f3d07a2fcfac6959 to your computer and use it in GitHub Desktop.
java, python and go dockerfile
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