Create Dockerfile

This commit is contained in:
Paras Pahwa 2023-09-07 12:48:21 +05:30 committed by GitHub
parent 8ff991327f
commit 876b6d0835
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

17
super-mario/Dockerfile Normal file
View File

@ -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