44 lines
1.1 KiB
Docker
44 lines
1.1 KiB
Docker
FROM debian:bullseye-slim
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
# Install 32-bit Wine architecture and minimal virtual framebuffer (Xvfb)
|
|
RUN dpkg --add-architecture i386 && \
|
|
apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
wine \
|
|
wine32 \
|
|
xvfb \
|
|
xauth && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# Configure Wine environment variables
|
|
ENV WINEPREFIX=/wine/prefix
|
|
ENV WINEARCH=win32
|
|
ENV WINEDLLOVERRIDES="mscoree,mshtml="
|
|
ENV PATH="/usr/lib/wine:${PATH}"
|
|
|
|
RUN mkdir -p /wine/prefix
|
|
|
|
# Initialize the default Wine prefix in background
|
|
RUN xvfb-run -a wine wineboot -u
|
|
|
|
# Inject the validated DataRescue IDA 5 license key into the Wine registry
|
|
COPY ida_licenca.reg /tmp/ida_licenca.reg
|
|
RUN xvfb-run -a wine regedit /tmp/ida_licenca.reg
|
|
|
|
# Set up application directories
|
|
RUN mkdir -p /app/ida /input /output
|
|
COPY ./ida5_files /app/ida
|
|
WORKDIR /app/ida
|
|
|
|
# Embed the analysis script into the image
|
|
COPY extract.idc /app/ida/extract.idc
|
|
|
|
# Configure the entrypoint script
|
|
COPY entrypoint.sh /app/ida/entrypoint.sh
|
|
RUN chmod +x /app/ida/entrypoint.sh
|
|
|
|
ENTRYPOINT ["/app/ida/entrypoint.sh"]
|