light-cpp
Light-Weight image for C++
180
With this image the process to compile and install C++ is easier and maintain your environment as clean as possible.
Acknowledgement to: Alpine - Base_Image - C++ Tutorial
sudo docker pull sethsterling/light-cpp
sudo docker run -it --rm -v $PWD:/workspace sethsterling/light-cpp
g++ {your_program_name}.cpp -o {your_executable_name}
./{your_executable_name}
# Light-Weight Docker image for C++
FROM alpine:3.18
WORKDIR /workspace
# Install packages removing cache
RUN apk update && \
apk add --no-cache build-base && \
rm -rf /var/cache/apk/*
CMD ["/bin/sh"]
sudo docker build -t light-cpp .
sudo docker run -it --rm -v $PWD:/workspace sethsterling/light-cpp
Content type
Image
Digest
sha256:6ec6bb556…
Size
82.9 MB
Last updated
8 months ago
docker pull sethsterling/light-cpp