WIP
This commit is contained in:
+15
-20
@@ -3,22 +3,14 @@ FROM python:3.14-slim AS build
|
||||
WORKDIR /
|
||||
|
||||
# Install build tools and dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
wget \
|
||||
default-jre \
|
||||
ruby \
|
||||
zip \
|
||||
7zip
|
||||
|
||||
# Install steganography and forensics tools
|
||||
RUN apt-get update && apt-get install -y \
|
||||
binwalk \
|
||||
foremost \
|
||||
exiftool \
|
||||
steghide \
|
||||
binutils \
|
||||
outguess \
|
||||
pngcheck \
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
wget default-jre ruby \
|
||||
bzip2 xz-utils gzip lzip lzma lzop tar unzip p7zip-full squashfs-tools \
|
||||
file qpdf cpio arj cabextract sharutils lz4 ccache mtd-utils \
|
||||
python3-lxml upx-ucl zlib1g-dev liblzma-dev \
|
||||
binwalk foremost exiftool steghide binutils outguess pngcheck \
|
||||
&& gem install zsteg
|
||||
|
||||
# Install OpenStego
|
||||
@@ -26,17 +18,20 @@ RUN wget https://github.com/syvaidya/openstego/releases/download/openstego-0.8.6
|
||||
dpkg -i /tmp/openstego.deb && \
|
||||
rm /tmp/openstego.deb
|
||||
|
||||
# Clean up apt cache and remove useless packages
|
||||
RUN apt-get remove -y wget && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy application
|
||||
COPY aperisolve/ /aperisolve/
|
||||
|
||||
RUN mkdir -p /data
|
||||
|
||||
# Install Python dependencies
|
||||
RUN pip install --no-cache-dir -r /aperisolve/requirements.txt
|
||||
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
# Auto clean after build
|
||||
RUN apt-get remove -y wget && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:5000", "--access-logfile", "-", "--error-logfile", "-", "--log-level", "info", "--capture-output", "aperisolve.wsgi:application"]
|
||||
|
||||
Reference in New Issue
Block a user