diff --git a/super-mario/Dockerfile b/super-mario/Dockerfile new file mode 100644 index 0000000..98c60bd --- /dev/null +++ b/super-mario/Dockerfile @@ -0,0 +1,17 @@ +FROM tomcat:9 + +MAINTAINER github.com/PengBAI + +RUN rm -rf /usr/local/tomcat/webapps/ROOT/* + +ADD webapp/ /usr/local/tomcat/webapps/ROOT/ + +## Create non-root user +RUN useradd -ms /bin/bash mario \ + && usermod -aG mario mario \ + && chown -R mario:mario /usr/local/tomcat + +EXPOSE 8080 +CMD ["catalina.sh", "run"] + +USER mario