forked from DougTidwell/podman-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4cd1f99
commit b6bd8eb
Showing
1 changed file
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
# Base the image on the standard C++ stack | ||
FROM eclipse/cpp_gcc | ||
|
||
# Basic system hygiene | ||
RUN sudo apt-get -y update && \ | ||
sudo apt-get -y upgrade && \ | ||
|
||
# Now create a directory, get the cmake code and install it | ||
cd /usr/local/bin && \ | ||
sudo curl -O https://cmake.org/files/v3.8/cmake-3.8.0-Linux-x86_64.tar.gz && \ | ||
sudo tar -xf cmake-3.8.0-Linux-x86_64.tar.gz && \ | ||
sudo rm cmake-3.8.0-Linux-x86_64.tar.gz && \ | ||
|
||
# Put a symlink to the executable in the PATH | ||
sudo ln -s /usr/local/bin/cmake-3.8.0-Linux-x86_64/bin/cmake /usr/local/bin/cmake | ||
|
||
# IMPORTANT: The Dockerfile has to end with a non-terminating CMD. This works | ||
# as well as any.... | ||
CMD tail -f /dev/null |