dfdewey/docker/Dockerfile
2020-11-13 16:28:04 +11:00

34 lines
1.2 KiB
Docker

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Use the official Docker Hub Ubuntu 18.04 base image
FROM ubuntu:18.04
# Update the base image
RUN apt update
RUN apt -y install apt-utils && apt -y upgrade && apt -y dist-upgrade
# Setup DFDewey dependencies
RUN apt -y install software-properties-common
RUN add-apt-repository ppa:gift/stable
RUN apt update
RUN apt -y install bulk-extractor git
# Setup dfDewey
RUN git clone https://github.com/google/dfdewey.git
RUN apt -y install python3 python3-pip python3-dev
RUN pip3 install -r dfdewey/requirements.txt
RUN cd dfdewey && python3 setup.py install
COPY dfdewey /usr/bin/
RUN chmod a+x /usr/bin/dfdewey