Skip to content

Commit

Permalink
BAH-2962-token | added spring-security filter to validate token.
Browse files Browse the repository at this point in the history
  • Loading branch information
anubhavBeehyv committed Nov 20, 2023
1 parent 128b348 commit 2c2ddab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 6 additions & 2 deletions package/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM amazoncorretto:11.0.18
VOLUME /tmp
RUN yum install openssl -y
COPY package/docker/generate_token.sh /home/
COPY package/docker/sms-startup.sh /
RUN chmod +x /home/generate_token.sh /sms-startup.sh
COPY build/libs/* app.jar
EXPOSE 8080
ENTRYPOINT ["java", "-jar", "/app.jar"]
VOLUME /tmp
CMD ["./sms-startup.sh"]
3 changes: 3 additions & 0 deletions package/docker/sms-startup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
./home/generate_token.sh &
java -jar app.jar

0 comments on commit 2c2ddab

Please sign in to comment.