Files
slides-optimized-docker-builds/.docker-files/2-grouping.Dockerfile
2023-11-26 23:12:06 +01:00

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