diff --git a/Dockerfile b/Dockerfile index 6691e24..8422bb0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,10 @@ COPY Webservice Webservice COPY public public COPY data data +RUN sed -i "s/DATE_TO_BE_REPLACED/$(date +%s)/" public/index.html +RUN sed -i "s/COMMIT_TO_BE_REPLACED/GitHub: $(git ls-remote https://github.com/H4CK3R-01/Projektmanagement-Game refs/heads/main | awk '{print $1;}' | cut -c1-7)/" public/index.html +RUN sed -i "s/COMMIT_LINK_TO_BE_REPLACED/https\:\/\/github.com\/H4CK3R-01\/Projektmanagement-Game\/commit\/$(git ls-remote https://github.com/H4CK3R-01/Projektmanagement-Game refs/heads/main | awk '{print $1;}')/" public/index.html + EXPOSE 5000 CMD [ "node", "Webservice/server.js" ] diff --git a/public/index.html b/public/index.html index c7a9fe1..8583fe4 100644 --- a/public/index.html +++ b/public/index.html @@ -17,8 +17,9 @@
-
Projektmanagement Game
-
DATE_TO_BE_REPLACEDCOMMIT_TO_BE_REPLACED
+
PM-Game
+
DATE_TO_BE_REPLACEDCOMMIT_TO_BE_REPLACED +