mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-01 04:22:11 +00:00
dionaea: adjust for multiarch builds
This commit is contained in:
parent
cfcf870da3
commit
6a277fd1e9
1 changed files with 11 additions and 6 deletions
|
@ -4,11 +4,18 @@ ENV DEBIAN_FRONTEND noninteractive
|
|||
# Include dist
|
||||
ADD dist/ /root/dist/
|
||||
#
|
||||
# Install dependencies and packages
|
||||
RUN apt-get update -y && \
|
||||
# Determine arch, get and install packages
|
||||
RUN ARCH=$(arch) && \
|
||||
if [ "$ARCH" = "x86_64" ]; then ARCH="amd64"; fi && \
|
||||
if [ "$ARCH" = "aarch64" ]; then ARCH="arm64"; fi && \
|
||||
echo "$ARCH" && \
|
||||
cd /root/dist/ && \
|
||||
apt-get update -y && \
|
||||
apt-get install wget -y && \
|
||||
wget http://archive.ubuntu.com/ubuntu/pool/universe/libe/libemu/libemu2_0.2.0+git20120122-1.2build1_amd64.deb http://archive.ubuntu.com/ubuntu/pool/universe/libe/libemu/libemu-dev_0.2.0+git20120122-1.2build1_amd64.deb && \
|
||||
apt install ./libemu2_0.2.0+git20120122-1.2build1_amd64.deb ./libemu-dev_0.2.0+git20120122-1.2build1_amd64.deb -y && \
|
||||
wget http://ftp.us.debian.org/debian/pool/main/libe/libemu/libemu2_0.2.0+git20120122-1.2+b1_$ARCH.deb \
|
||||
http://ftp.us.debian.org/debian/pool/main/libe/libemu/libemu-dev_0.2.0+git20120122-1.2+b1_$ARCH.deb && \
|
||||
apt install ./libemu2_0.2.0+git20120122-1.2+b1_$ARCH.deb \
|
||||
./libemu-dev_0.2.0+git20120122-1.2+b1_$ARCH.deb -y && \
|
||||
apt-get dist-upgrade -y && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
build-essential \
|
||||
|
@ -19,7 +26,6 @@ RUN apt-get update -y && \
|
|||
git \
|
||||
libcap2-bin \
|
||||
libcurl4-openssl-dev \
|
||||
# libemu-dev \
|
||||
libev-dev \
|
||||
libglib2.0-dev \
|
||||
libloudmouth1-dev \
|
||||
|
@ -97,7 +103,6 @@ RUN apt-get update -y && \
|
|||
libnetfilter-queue1 \
|
||||
libnl-3-200 \
|
||||
libpcap0.8 \
|
||||
# libpython3.6 \
|
||||
libpython3.8 \
|
||||
libudns0 && \
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue