@@ -0,0 +1 @@
+16
@@ -1,12 +1,12 @@
-FROM node:14 AS base
+FROM node:16 AS base
WORKDIR /code
RUN npm config set registry https://registry.npmmirror.com
-ADD package.json /code
-RUN npm install
+ADD package.json yarn.lock /code/
+RUN yarn install --frozen-lockfile
ADD . /code
RUN yarn build
FROM nginx:1.19-alpine
COPY nginx.conf /etc/nginx/conf.d/nginx.conf
-COPY --from=base /code/dist /var/www/html/dist/
+COPY --from=base /code/dist /var/www/html/dist/
@@ -78,5 +78,8 @@
"> 1%",
"last 2 versions",
"not dead"
- ]
+ ],
+ "engines": {
+ "node": ">=16 <19"
+ }
}
@@ -3,6 +3,7 @@ const WebpackBar = require("webpackbar");
module.exports = {
productionSourceMap: false,
publicPath: process.env.BASE_URL,
+ transpileDependencies: ["vue-router"],
chainWebpack: config => {
config
.plugin("html")