How do we deploy a war from git to tomcat in ubuntu image using docker files

0 votes
Hi friends,

Help me with manual docker deployment steps.
Example: I have tomcat installed in ubuntu alpine image. I have code(war) in Github.

How do we deploy a war ( from git to tomcat in ubuntu image ) using docker files?

Please help me with this
Sep 17, 2020 in Docker by anonymous
• 19,620 points

1 answer to this question.

0 votes


If you want to clone your repo inside your Docker image, then you can use the git clone command. So inside your Docker file, you can use the below command.

RUN git clone
answered Sep 17, 2020 by MD
• 95,320 points

Related Questions In Docker

0 votes
1 answer

how do I create an image from a tar archive in docker?

You can use docker load command inorder to get ...READ MORE

answered Jul 2, 2019 in Docker by Sirajul
• 59,090 points
0 votes
2 answers
+3 votes
4 answers

How to install packages inside a docker Ubuntu image?

Execute the update and the install command ...READ MORE

answered Apr 24, 2019 in Docker by Vismaya
+1 vote
2 answers

How do I copy a file from docker container to host?

Here is a way which you can ...READ MORE

answered Aug 28, 2018 in Docker by Damon Salvatore
• 5,980 points
+2 votes
1 answer
0 votes
1 answer

Running docker-compose on a docker gitlab-ci-multi-runner

The problem (as I understand it) is ...READ MORE

answered Aug 2, 2018 in Docker by Kalgi
• 52,370 points
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
0 votes
1 answer

How to save a Docker image in tar file?

Hi@akhtar, Sometimes we may require to copy an ...READ MORE

answered Sep 28, 2020 in Docker by MD
• 95,320 points