From 9e730456bbac0fa0e051f8353c2412215276be68 Mon Sep 17 00:00:00 2001 From: Leonardo Lima Date: Sat, 3 Oct 2020 03:56:57 -0300 Subject: [PATCH] Implemented Docker support --- Dockerfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..eff9f73 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +FROM gcc:9.2 + +ENV DEBIAN_FRONTEND noninteractive + +# Installing Dependencies +RUN apt-get update && apt-get install -y \ + wget \ + && rm -rf /var/lib/apt/lists/* + +# Installing CMake +RUN wget "https://github.com/Kitware/CMake/releases/download/v3.18.3/cmake-3.18.3-Linux-x86_64.sh" \ + && chmod a+x cmake-3.18.3-Linux-x86_64.sh \ + && ./cmake-3.18.3-Linux-x86_64.sh --prefix=/usr/local --skip-license \ + && rm cmake-3.18.3-Linux-x86_64.sh + +# Copying files +COPY . /app +WORKDIR /app + +# Building +RUN cmake -Hall -Bbuild \ + && cmake --build build + +# Running +CMD [ "./build/standalone/Greeter" ] \ No newline at end of file