mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
Create Dockerfile
This commit is contained in:
parent
8ff991327f
commit
876b6d0835
17
super-mario/Dockerfile
Normal file
17
super-mario/Dockerfile
Normal 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
|
Loading…
Reference in New Issue
Block a user