dfdewey/docker/Dockerfile

42 lines
1.2 KiB
Text
Raw Normal View History

2020-03-05 05:12:39 +00:00
# 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
2024-07-16 01:01:16 +00:00
FROM ubuntu:24.04
2019-11-18 00:00:59 +00:00
# Update the base image
2021-09-08 04:35:57 +00:00
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update
RUN apt -y install apt-utils && apt -y upgrade && apt -y dist-upgrade
2019-11-18 00:00:59 +00:00
2020-10-13 05:23:33 +00:00
# Setup DFDewey dependencies
RUN apt -y install software-properties-common
RUN add-apt-repository ppa:gift/stable
RUN apt update
2021-09-08 04:35:57 +00:00
RUN apt -y install \
bulk-extractor \
libpq-dev \
python3 \
python3-pip \
python3-dev \
python3-dfvfs
# Setup dfDewey
2021-09-08 04:35:57 +00:00
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"]