Skip to content

Commit

Permalink
feat: use base image
Browse files Browse the repository at this point in the history
  • Loading branch information
henrylee97 committed Nov 28, 2023
1 parent c554c8d commit 25ac5db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 419 deletions.
34 changes: 3 additions & 31 deletions C/snort-38/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,39 +1,11 @@
FROM ubuntu:20.04

RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
wget \
jq \
libtool \
flex \
bison \
autopoint \
autoconf \
automake \
build-essential \
pkg-config \
libssl-dev \
libtasn1-dev \
libpcap-dev \
libdaq-dev \
libdumbnet-dev \
libluajit-5.1-dev \
libpcre3-dev \
libnghttp2-dev \
zlib1g-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
FROM base

RUN mkdir -p /workspace
COPY . /workspace
WORKDIR /workspace
COPY ./metadata.json /workspace/metadata.json

RUN export BUGGY_PATH=$(cat metadata.json | jq -r ".buggyPath") \
&& wget "https://www.snort.org/downloads/archive/snort/snort-2.9.13.tar.gz" --no-check-certificate \
&& tar xvf snort-2.9.13.tar.gz \
&& mv snort-2.9.13 $BUGGY_PATH \
&& cp util.h $BUGGY_PATH/src/ \
&& mv /opt/snort-2.9.13 /${BUGGY_PATH} \
&& cd $BUGGY_PATH \
&& ./configure

Loading

0 comments on commit 25ac5db

Please sign in to comment.