From 876b6d0835f5d371f46b4646cef294c5c00a4f1e Mon Sep 17 00:00:00 2001 From: Paras Pahwa <134779342+paraspahwa@users.noreply.github.com> Date: Thu, 7 Sep 2023 12:48:21 +0530 Subject: [PATCH] Create Dockerfile --- super-mario/Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 super-mario/Dockerfile 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