File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 2
2
# install && build && purne
3
3
FROM node:lts-alpine as install-target
4
4
ENV PATH $PATH:/app/node_modules/.bin
5
- ARG APP_VERSION=$APP_VERSION
6
- ENV APP_VERSION=$APP_VERSION
5
+ ARG VUE_APP_VERSION=$VUE_APP_VERSION
6
+ ENV VUE_APP_VERSION=$VUE_APP_VERSION
7
7
WORKDIR /app
8
8
COPY src ./src
9
9
COPY public ./public
@@ -13,8 +13,8 @@ RUN npm run build
13
13
14
14
# dist
15
15
FROM nginx
16
- ARG APP_VERSION=$APP_VERSION
17
- ENV APP_VERSION=$APP_VERSION
16
+ ARG VUE_APP_VERSION=$VUE_APP_VERSION
17
+ ENV VUE_APP_VERSION=$VUE_APP_VERSION
18
18
ENV NODE_ENV=production
19
19
20
20
COPY nginx.conf /etc/nginx/nginx.conf
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export default {
19
19
getVersion () {
20
20
console .log (process .env );
21
21
if (process .env .NODE_ENV === ' development' ) return ' dev'
22
- return process .env .APP_VERSION || ' Не определена'
22
+ return process .env .VUE_APP_VERSION || ' Не определена'
23
23
}
24
24
}
25
25
}
You can’t perform that action at this time.
0 commit comments