Skip to content

Commit

Permalink
added lsb_release
Browse files Browse the repository at this point in the history
  • Loading branch information
mrwalter committed Feb 19, 2024
1 parent 20e0979 commit e965629
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ ARG INSTALL_DIR=/usr/local
# environment variables
ENV LIBBOT2_INSTALL_DIR $INSTALL_DIR

# install dependencies
RUN apt update \
&& apt install -y \
sudo \
&& rm -rf /var/lib/apt/lists/*
# update apt lists and install system libraries, then clean the apt cache
RUN apt update && apt install -y \
lsb-release \
# clean the apt cache
&& rm -rf /var/lib/apt/lists/*

RUN echo "Codename is: $(lsb_release -c -s)"
RUN ["echo", "$(lsb_release -c -s)"]

# build libbot2 from source
RUN mkdir -p /tmp/libbot2 && \
Expand All @@ -20,6 +23,7 @@ RUN mkdir -p /tmp/libbot2 && \
tar -zxvf master.tar.gz && \
cd libbot2-master && \
# install dependencies, then clean the apt cache
UBUNTU_DISTRIB_CODENAME=$(lsb_release -c -s) && \
./scripts/setup/linux/ubuntu/$UBUNTU_DISTRIB_CODENAME/install_prereqs && \
rm -rf /var/lib/apt/lists/* && \
cd .. && \
Expand Down

0 comments on commit e965629

Please sign in to comment.