Skip to content

Commit 03fbca2

Browse files
committed
sync
1 parent 535f6e8 commit 03fbca2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# install && build && purne
33
FROM node:lts-alpine as install-target
44
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
77
WORKDIR /app
88
COPY src ./src
99
COPY public ./public
@@ -13,8 +13,8 @@ RUN npm run build
1313

1414
# dist
1515
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
1818
ENV NODE_ENV=production
1919

2020
COPY nginx.conf /etc/nginx/nginx.conf

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default {
1919
getVersion() {
2020
console.log(process.env);
2121
if (process.env.NODE_ENV === 'development') return 'dev'
22-
return process.env.APP_VERSION || 'Не определена'
22+
return process.env.VUE_APP_VERSION || 'Не определена'
2323
}
2424
}
2525
}

0 commit comments

Comments
 (0)