Jsteg working

This commit is contained in:
Zeecka
2026-01-14 22:34:07 +01:00
parent 1c4b245c86
commit 8f491c683f
4 changed files with 40 additions and 2 deletions
+9 -2
View File
@@ -5,13 +5,19 @@ FROM python:3.14-slim AS builder
# Install wget only to download OpenStego
RUN apt-get update && apt-get install -y --no-install-recommends \
wget git build-essential \
wget git build-essential golang-go \
&& rm -rf /var/lib/apt/lists/*
# Download OpenStego
RUN wget https://github.com/syvaidya/openstego/releases/download/openstego-0.8.6/openstego_0.8.6-1_all.deb \
-O /tmp/openstego.deb
# Clone and build jsteg from source
RUN git clone https://github.com/lukechampine/jsteg.git /tmp/jsteg
RUN cd /tmp/jsteg && \
go build -o /usr/local/bin/jsteg ./cmd/jsteg && \
rm -rf /tmp/jsteg
# Builder stage - add after other tool compilations
RUN git clone https://github.com/h3xx/jphs.git /tmp/jphs
RUN cd /tmp/jphs/jpeg-8a && ./configure && make
@@ -64,9 +70,10 @@ COPY aperisolve/ /app/aperisolve/
# Install Python dependencies
RUN pip install --no-cache-dir -r /app/aperisolve/requirements.txt
# Copy jphide binaries
# Copy jphide and jsteg binaries
COPY --from=builder /usr/local/bin/jphide /usr/local/bin/jphide
COPY --from=builder /usr/local/bin/jpseek /usr/local/bin/jpseek
COPY --from=builder /usr/local/bin/jsteg /usr/local/bin/jsteg
# Commande de lancement
CMD ["gunicorn", "-w", "8", "-b", "0.0.0.0:5000", "--access-logfile", "-", "--error-logfile", "-", "--log-level", "info", "--capture-output", "aperisolve.utils.wsgi:application"]