edwagbb commited on
Commit
ab1d503
·
verified ·
1 Parent(s): 1f642a7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -5,5 +5,6 @@ RUN apt-get update && apt-get install -y curl
5
  RUN useradd -m -u 1000 -s /bin/bash admin
6
  RUN echo 'admin:pass' | chpasswd
7
  RUN chown -R 1000 /home && chmod -R 700 /home
8
- RUN chmod -R u+rwx,g+rwx,o+rwx /home
9
- CMD cd /home/admin && curl https://get.wasmer.io -sSfL | sh && chmod +x /home/admin/.wasmer/wasmer.sh && /home/admin/.wasmer/bin/wasmer run python/python -- -c "print(1+1)" > ./1.txt && cat ./1.txt && cat /home/admin/.wasmer/wasmer.sh
 
 
5
  RUN useradd -m -u 1000 -s /bin/bash admin
6
  RUN echo 'admin:pass' | chpasswd
7
  RUN chown -R 1000 /home && chmod -R 700 /home
8
+ USER 1000
9
+ RUN cd /home/admin && curl https://get.wasmer.io -sSfL | sh
10
+ CMD /home/admin/.wasmer/bin/wasmer run python/python -- -c "print(1+1)" > ./1.txt && cat ./1.txt && cat /home/admin/.wasmer/wasmer.sh