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: {