Skip to content

Commit 695c891

Browse files
authored
Merge pull request #113 from bghost/master
Update Dockerfile
2 parents 5d3d48e + 21fbbad commit 695c891

2 files changed

Lines changed: 21 additions & 10 deletions

File tree

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
*.pyc
2+
__init__.py
3+
__pycache__
4+
5+
# Ignore built files
6+
/.dshellrc
7+
/bin/decode
8+
/dshell
9+
/dshell-decode

docker/Dockerfile

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM ubuntu:14.04
1+
FROM ubuntu:18.04
2+
3+
ENV DEBIAN_FRONTEND="noninteractive"
24

35
# install depdencies
46
RUN apt-get update && apt-get install -y \
@@ -12,17 +14,17 @@ RUN apt-get update && apt-get install -y \
1214
git
1315

1416
# Download the latest version of the code from GitHub
15-
WORKDIR /opt/
16-
RUN git clone https://github.com/USArmyResearchLab/Dshell.git
17+
RUN git -C /opt clone https://github.com/USArmyResearchLab/Dshell.git
1718

1819
# download and untar GeoIP files
1920
WORKDIR /opt/Dshell/share/GeoIP/
20-
RUN wget https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz
21-
RUN wget https://geolite.maxmind.com/download/geoip/database/GeoLite2-ASN.tar.gz
22-
RUN tar -zxf GeoLite2-Country.tar.gz
23-
RUN tar -zxf GeoLite2-ASN.tar.gz
24-
RUN GeoLite2-Country*/GeoLite2-Country.mmdb .
25-
RUN GeoLite2-ASN*/GeoLite2-ASN.mmdb .
21+
RUN wget https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz \
22+
&& wget https://geolite.maxmind.com/download/geoip/database/GeoLite2-ASN.tar.gz \
23+
&& tar -zxf GeoLite2-Country.tar.gz \
24+
&& tar -zxf GeoLite2-ASN.tar.gz \
25+
&& ln -s GeoLite2-Country*/GeoLite2-Country.mmdb . \
26+
&& ln -s GeoLite2-ASN*/GeoLite2-ASN.mmdb . \
27+
&& rm -rf /var/lib/apt/lists/*
2628

2729
# make Dshell
2830
WORKDIR /opt/Dshell/
@@ -31,4 +33,4 @@ RUN make
3133
# Used to mount pcap from a host OS directory
3234
VOLUME ["/mnt/pcap"]
3335

34-
CMD ["/opt/Dshell/dshell"]
36+
ENTRYPOINT ["/opt/Dshell/dshell"]

0 commit comments

Comments
 (0)