code / Dockerfile
edwagbb's picture
Update Dockerfile
228f98f verified
raw
history blame
622 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 echo 111 && /home/admin/.wasmer/bin/wasmer run python/python -- -c "print(333)" && /home/admin/.wasmer/bin/wasmer run php/php --net --dir=/home/admin -- -S 0.0.0.0:7860 -t /