-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
67 lines (57 loc) · 1.43 KB
/
Dockerfile
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
FROM phusion/baseimage
MAINTAINER Mark Phillips ([email protected])
LABEL version="1.0"
LABEL description="Dockerfile optimization and packaging of mac_apt"
RUN apt-get update && apt-get install -qy \
apt-utils \
autoconf \
automake \
autopoint \
byacc \
flex \
gcc \
git \
gzip \
libbz2-dev \
libtool \
make \
pkg-config \
python-dev \
python-pip \
python2.7 \
tar \
wget \
zip \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --upgrade pip
RUN pip install biplist tzlocal construct==2.8.10 xlsxwriter enum34 kaitaistruct pkipplib lz4
RUN pip install pytsk3==20170802
RUN git clone --recursive https://github.com/ydkhatri/pylzfse
WORKDIR pylzfse
RUN python setup.py build \
&& python setup.py install \
&& rm -rf /pylzfse
WORKDIR /
RUN wget https://github.com/libyal/libewf-legacy/releases/download/20140802/libewf-20140802.tar.gz
RUN tar xvzf libewf-20140802.tar.gz
WORKDIR libewf-20140802
RUN ./configure --enable-python \
&& make \
&& make install \
&& ldconfig \
&& rm -rf /libewf-20140802 \
&& rm /libewf-20140802.tar.gz
RUN rm -rf /tmp/* /var/tmp/* /root/* \
&& apt-get remove -y \
&& apt-get autoremove -y \
&& apt-get autoclean
WORKDIR /
RUN git clone https://github.com/ydkhatri/mac_apt
COPY docker-wrapper.sh /mac_apt
RUN useradd docker \
&& mkdir /home/docker \
&& chown docker:docker /home/docker
USER docker
WORKDIR /home/docker
ENTRYPOINT ["/mac_apt/docker-wrapper.sh"]