19 lines
469 B
Docker
19 lines
469 B
Docker
FROM ubuntu
|
|
|
|
# Setting entry point to the app binary
|
|
ENTRYPOINT ["/usr/local/bin/HelloWorldApp"]
|
|
|
|
# Install cmake to manage the build process
|
|
RUN apt-get update \
|
|
&& apt-get install --no-install-recommends -y g++ make cmake \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Copy all source files from the current directory to /app in the image
|
|
COPY CMakeLists.txt .
|
|
COPY src ./src
|
|
|
|
# Configuring, building and install the app
|
|
RUN cmake . \
|
|
&& make \
|
|
&& make install
|