diff --git a/.github/workflows/upload_release.yaml b/.github/workflows/upload_release.yaml
index 9bfe911..e241e12 100644
--- a/.github/workflows/upload_release.yaml
+++ b/.github/workflows/upload_release.yaml
@@ -42,3 +42,18 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: rpm/target/rpm/com.teragrep-aer_01/RPMS/noarch/com.teragrep-aer_01-*.rpm
+
+ - name: Login to GitHub Container Registry
+ uses: docker/login-action@v2.1.0
+ with:
+ registry: ghcr.io
+ username: ${{ github.actor }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Lowercase repository name
+ run: echo "REPO_LC=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV
+
+ - name: 'Build Image'
+ run: |
+ docker buildx build --output type=docker --tag ghcr.io/${{ env.REPO_LC }}:${{ github.event.release.tag_name }} --tag ghcr.io/${{ env.REPO_LC }}:latest .
+ docker push ghcr.io/${{ env.REPO_LC }} --all-tags
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..173bff6
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,6 @@
+FROM rockylinux:8
+COPY rpm/target/rpm/com.teragrep-aer_01/RPMS/noarch/com.teragrep-aer_01-*.rpm /rpm/
+RUN dnf -y install /rpm/*.rpm && rm -f /dnf/*.rpm && dnf clean all
+WORKDIR /opt/teragrep/aer_01
+ENTRYPOINT [ "/usr/bin/java", "-Dconfig.source=environment", "-jar", "/opt/teragrep/aer_01/lib/aer_01.jar" ]
+CMD [""]
diff --git a/pom.xml b/pom.xml
index 0dbaa7a..bf3429d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -205,14 +205,13 @@
.gitignore
.gitmodules
- .github/workflows/*.yml
- .github/workflows/*.yaml
+ .github/**
README.adoc
**/log4j2.xml
-
- Jenkinsfile
+
+ Dockerfile
rpm/**