dfdewey/docker/Dockerfile
Jason 7aadd41ee2
Add image reparse and deletion functions (#31)
* Update readme for bulk_extractor v2.0.0

* Update docker image to Ubuntu 20.04

* Parse filesystem before string extraction

* Refactor postgres datastore code

* Add reparse option

* Add option to delete image data

* Update usage

* Update version
2022-06-03 15:35:43 +10:00

41 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 20.04 base image
FROM ubuntu:20.04
# Update the base image
ENV DEBIAN_FRONTEND=noninteractive
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 \
libpq-dev \
python3 \
python3-pip \
python3-dev \
python3-dfvfs
# Setup dfDewey
ADD . /tmp/
RUN cd /tmp/ && python3 setup.py install
COPY docker/keepalive.sh /usr/bin/keepalive.sh
RUN chmod a+x /usr/bin/keepalive.sh
CMD ["/usr/bin/keepalive.sh"]