Commit 0383ca67 authored by Marek Vavruša's avatar Marek Vavruša

docker: separate FS layer for deb-pkgs

parent 10ef1147
......@@ -17,13 +17,15 @@ libssl-dev \
liburcu-dev \
pkg-config \
liblmdb-dev; \
# Fetch sources
mkdir /src; \
# Trim down the image
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/*
# Fetch and compile sources
RUN mkdir /src; \
git clone https://gitlab.labs.nic.cz/labs/knot.git /src/knot; \
# Compile sources in the right order
cd /src/knot && autoreconf -if && ./configure && make -j${THREADS} && make install && ldconfig; \
# Trim down the image
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /src
rm -rf /src
# Select entrypoint
WORKDIR /root
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment