Skip to content

Commit 906b0ad

Browse files
committed
Add comments to the Dockerfile
1 parent e90aa84 commit 906b0ad

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Dockerfile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RUN http_proxy=$http_proxy https_proxy=$http_proxy no_proxy=$no_proxy add-apt-re
66
RUN http_proxy=$http_proxy https_proxy=$http_proxy no_proxy=$no_proxy apt-get --allow-unauthenticated update
77
RUN DEBIAN_FRONTEND=noninteractive http_proxy=$http_proxy https_proxy=$http_proxy no_proxy=$no_proxy apt-get install -y --allow-unauthenticated php5.6-dev git-core
88

9-
# obtain a copy of ZendGuardLoader.so and place it in your repository
9+
# Obtain a copy of ZendGuardLoader.so and place it in your repository, before building this Dockerfile
1010
COPY . .
1111
RUN git clone https://github.com/lighttpd/xcache
1212
WORKDIR /xcache
@@ -16,4 +16,12 @@ RUN ./configure --enable-xcache-disassembler
1616
RUN make
1717
RUN make install
1818
RUN printf "\nextension=xcache.so" >> /etc/php/5.6/cli/php.ini
19-
RUN printf "\nzend_extension=/ZendGuardLoader.so" >> /etc/php/5.6/cli/php.ini
19+
RUN printf "\nzend_extension=/ZendGuardLoader.so" >> /etc/php/5.6/cli/php.ini
20+
WORKDIR /
21+
22+
# Build the container
23+
# docker build -t zenddecoder .
24+
25+
# To decompile your code base, mount it in the docker volume and run a bash one-liner:
26+
# docker run -v /path/to/your/code/:/codebase -it zenddecoder /bin/bash
27+
# for f in $(find /codebase -name '*.php'); do php index.php $f > "dec_"$f; done

0 commit comments

Comments
 (0)