> For the complete documentation index, see [llms.txt](https://devops-maestro.gitbook.io/cicd-pipeline-using-jenkins-and-argocd/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://devops-maestro.gitbook.io/cicd-pipeline-using-jenkins-and-argocd/dockerizing-the-application.md).

# Dockerizing the application

Create a Dockerfile with the following contents to create a docker image of the spring boot application

```
FROM adoptopenjdk/openjdk11:alpine-jre

ARG artifact=target/spring-boot-web.jar

WORKDIR /opt/app

COPY ${artifact} app.jar

ENTRYPOINT ["java","-jar","app.jar"]
```
