# Example Dockerfile # syntax = docker/dockerfile:1.2 # # Creates a container environment based on Arch Linux, copies in whatever is in # the current directory, and builds it. # # To build: # # docker build . -t # (as root!) # # docker run # FROM archlinux # use faster mirror to speed up the image build RUN echo 'Server = https://mirror.pkgbuild.com/$repo/os/$arch' > /etc/pacman.d/mirrorlist # install packages RUN pacman -Suy --noconfirm --needed base base-devel RUN find /var/cache/pacman -type f -delete # [!] You may want to customize after this point... # Copy the current directory to '/app' in the container COPY . /app # Build the program RUN make clean -C /app RUN make -C /app CMD /app/whatever arg1 arg2 arg3 ...