forked from Nekmo/amazon-dash
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (21 loc) · 663 Bytes
/
Dockerfile
File metadata and controls
25 lines (21 loc) · 663 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM python:3.7-alpine
LABEL maintainer="Nekmo Com <contacto@nekmo.com>"
VOLUME /config
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY . .
COPY common-requirements.txt common-requirements.txt
COPY py3-requirements.txt py3-requirements.txt
RUN apk update \
&& apk add --no-cache --virtual build-dependencies \
build-base=0.5-r1 \
&& apk add --no-cache \
libpcap=1.8.1-r1 \
procps=3.3.15-r0 \
tcpdump=4.9.2-r3 \
scapy=2.4.0-r0 \
&& pip install --no-cache-dir -r py3-requirements.txt \
&& pip install . \
&& python -m amazon_dash.install \
&& apk del build-dependencies \
&& rm -rf /var/cache/apk/*