From 48df66d4a0987a4122828de90515dd669a6c7ede Mon Sep 17 00:00:00 2001 From: suguo <25950955@qq.com> Date: Fri, 25 Apr 2025 16:43:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 16 +++++++++ src/router/index.js | 5 +++ src/views/dialog.vue | 79 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 100 insertions(+) create mode 100644 Dockerfile create mode 100644 src/views/dialog.vue diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d9e5551 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM nginx:1.25.3-alpine + +LABEL "authors"="suguo.yao" +LABEL "email"="ysg@myschools.me" + +ENV TZ=Asia/Shanghai \ + LANG=C.UTF-8 \ + APP_DIR=/usr/share/nginx/html + +COPY dist/. ${APP_DIR} + +WORKDIR ${APP_DIR} + +EXPOSE 80 + +RUN ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime && echo ${TZ} > /etc/timezone \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index f6ae5cd..4b647d2 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -10,6 +10,11 @@ const routes = [ path: '/about', name: 'About', component: ()=> import("../views/about.vue"), + }, + { + path: '/dialog', + name: 'Dialog', + component: ()=> import("../views/dialog.vue"), } ]; diff --git a/src/views/dialog.vue b/src/views/dialog.vue new file mode 100644 index 0000000..708daf0 --- /dev/null +++ b/src/views/dialog.vue @@ -0,0 +1,79 @@ + + + + + \ No newline at end of file