add convenience Dockerfile

This commit is contained in:
2022-10-17 09:33:09 +00:00
parent 2d6bd14eb4
commit b0220d978a
+24
View File
@@ -0,0 +1,24 @@
ARG BASE_IMAGE=ubuntu:20.04
FROM ${BASE_IMAGE} AS builder
WORKDIR /build
ARG BUILD_PACKAGES='\
git \
g++ \
make \
libdw-dev \
libunwind-dev \
libiberty-dev \
'
RUN apt-get update -qq && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends $BUILD_PACKAGES
COPY ./include ./include
COPY ./src ./src
COPY ./tests ./tests
COPY Makefile Makefile
RUN make all