0
0
mirror of https://github.com/vx3r/wg-gen-web.git synced 2024-12-18 00:13:23 +00: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

View File

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


FROM alpine FROM alpine

View File

@ -1,5 +1,5 @@
const {gitDescribe, gitDescribeSync} = require('git-describe'); const {gitDescribe, gitDescribeSync} = require('git-describe');
process.env.VUE_APP_GIT_HASH = gitDescribeSync().hash process.env.VUE_APP_GIT_HASH = gitDescribeSync().hash;


module.exports = { module.exports = {
devServer: { devServer: {