DEVOPS-1893 New Dockerfile
This commit is contained in:
parent
f20520cfd0
commit
de343de8f5
3 changed files with 175 additions and 12 deletions
25
config/Dockerfile.TC
Normal file
25
config/Dockerfile.TC
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#Dockerfile for TeamCity build "run in docker"
|
||||
|
||||
FROM repo.micord.ru/alt/alt-tomcat:c10f1-9.0.59-20240917
|
||||
ARG ADMIN_PASSWORD=Secr3t
|
||||
|
||||
USER root
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get -y install fonts-ttf-ms
|
||||
|
||||
COPY tomcat /
|
||||
|
||||
RUN cat /etc/tomcat/webbpm.properties >> /etc/tomcat/catalina.properties \
|
||||
&& sed -i -r "s/<must-be-changed>/$ADMIN_PASSWORD/g" /etc/tomcat/tomcat-users.xml \
|
||||
&& chown root:tomcat /var/lib/tomcat/webapps \
|
||||
&& chmod g+rw /var/lib/tomcat/webapps
|
||||
|
||||
COPY frontend.war /var/lib/tomcat/webapps/ROOT.war
|
||||
COPY account-applications.war /var/lib/tomcat/webapps/account-applications.war
|
||||
|
||||
USER tomcat
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue