From 1a35c22d59f197b9dd86d2a1deb8b6f4bee6290c Mon Sep 17 00:00:00 2001 From: vx3r Date: Tue, 25 Feb 2020 16:07:44 +0900 Subject: [PATCH] git-describe needs .git --- Dockerfile | 1 + ui/vue.config.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a9cdaaa..18ffbdc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,7 @@ WORKDIR /app COPY ui/package*.json ./ RUN npm install COPY ui/ ./ +COPY .git . RUN npm run build FROM alpine diff --git a/ui/vue.config.js b/ui/vue.config.js index e72673e..64b7ac6 100644 --- a/ui/vue.config.js +++ b/ui/vue.config.js @@ -1,5 +1,5 @@ const {gitDescribe, gitDescribeSync} = require('git-describe'); -process.env.VUE_APP_GIT_HASH = gitDescribeSync().hash +process.env.VUE_APP_GIT_HASH = gitDescribeSync().hash; module.exports = { devServer: {