-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
21 lines (18 loc) · 1002 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM debian:bookworm-slim
# Pin the version of libpcap by downloading the release directly
# (rather than installing the version from apt-get which may not be compatible)
RUN apt-get -y update && \
apt-get install -y curl wget flex bison make build-essential && \
curl -L https://github.com/Clever/gor/releases/download/v0.13.6/gor_0.13.6_x64.tar.gz | tar xvz -C /usr/local/bin/ && \
chmod +x /usr/local/bin/gor && \
wget https://www.tcpdump.org/release/libpcap-1.7.4.tar.gz && \
tar xzf libpcap-1.7.4.tar.gz && \
cd libpcap-1.7.4 && \
./configure && \
make install && \
cd .. && \
rm -rf libpcap-1.7.4 && \
apt-get install -y ca-certificates
COPY bin/sfncli /usr/bin/sfncli
COPY build/linux-amd64/http-science /usr/local/bin/http-science
CMD ["/usr/bin/sfncli", "--cmd", "/usr/local/bin/http-science", "--activityname", "${_DEPLOY_ENV}--${_APP_NAME}", "--region", "us-west-2", "--cloudwatchregion", "${_POD_REGION}", "--workername", "MAGIC_ECS_TASK_ID"]