1
1
mirror of https://github.com/vx3r/wg-gen-web.git synced 2024-11-22 02:31:57 +01:00

git-describe needs .git

This commit is contained in:
vx3r 2020-02-25 16:07:44 +09:00
parent 1d599c401b
commit 1a35c22d59
2 changed files with 2 additions and 1 deletions

@ -8,6 +8,7 @@ WORKDIR /app
COPY ui/package*.json ./
RUN npm install
COPY ui/ ./
COPY .git .
RUN npm run build
FROM alpine

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