build: implement php obfustation
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
FROM node:latest
|
||||
FROM php:7.4-alpine
|
||||
|
||||
RUN apt update && apt install -y zip
|
||||
RUN mkdir -p /app
|
||||
COPY ./frontend /app/frontend
|
||||
COPY ./module /app/module
|
||||
COPY ./scripts/build.sh /app/scripts/build.sh
|
||||
RUN apk update
|
||||
RUN apk add git
|
||||
|
||||
WORKDIR /app
|
||||
RUN mkdir -p /usr/local && \
|
||||
cd /usr/local && git clone https://github.com/pk-fr/yakpro-po.git && \
|
||||
cd yakpro-po && git clone https://github.com/nikic/PHP-Parser.git --branch 4.x && \
|
||||
chmod a+x yakpro-po.php && \
|
||||
ln -s /usr/local/yakpro-po/yakpro-po.php /usr/local/bin/yakpro-po
|
||||
|
||||
CMD ["./scripts/build.sh"]
|
||||
COPY ./docker/config.php /usr/local/yakpro-po
|
||||
|
||||
COPY ./module/oc_telegram_shop/upload/oc_telegram_shop /app
|
||||
COPY ./scripts /scripts
|
||||
|
||||
Reference in New Issue
Block a user