From 5eb8357a9bb98e5ae8f45978ac5c02aa3592f776 Mon Sep 17 00:00:00 2001
From: Matej Hrica <mtjhrc@gmail.com>
Date: Sat, 27 May 2023 18:00:06 +0200
Subject: [PATCH] Add Dockerfile to token-grabber and add it to compose.yaml

---
 compose.yaml             | 5 +++++
 token-grabber/Dockerfile | 3 +++
 2 files changed, 8 insertions(+)
 create mode 100644 token-grabber/Dockerfile

diff --git a/compose.yaml b/compose.yaml
index 47a0610..b5d7637 100644
--- a/compose.yaml
+++ b/compose.yaml
@@ -10,6 +10,11 @@ services:
     ports:
         - "8080:8080"
 
+  token-grabber:
+    build: "./token-grabber"
+    ports:
+      - "8081:8081"
+
   authorization:
     build: "./user"
     ports:
diff --git a/token-grabber/Dockerfile b/token-grabber/Dockerfile
new file mode 100644
index 0000000..d131222
--- /dev/null
+++ b/token-grabber/Dockerfile
@@ -0,0 +1,3 @@
+FROM eclipse-temurin:17-jdk-alpine
+COPY target/*.jar /app.jar
+ENTRYPOINT ["java", "-jar", "/app.jar"]
\ No newline at end of file
-- 
GitLab