diff --git a/Dockerfile b/Dockerfile index 75974b6..80a8e6f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18-bullseye +FROM node:lts-alpine3.17 RUN mkdir -p /web @@ -6,15 +6,15 @@ COPY . /web WORKDIR /web -RUN npm config set registry https://registry.npm.taobao.org -RUN npm install -g pnpm -RUN pnpm install - -RUN pnpm build +# RUN yarn config set registry https://registry.npm.taobao.org +# RUN npm install -g yarn +RUN yarn +RUN yarn build +RUN rm -rf node_module ENV HOST 0.0.0.0 ENV PORT 3000 EXPOSE 3000 -CMD ["pnpm", "start"] +CMD ["yarn", "start"] diff --git a/components/Carousel.vue b/components/Carousel.vue index a3860fc..979d30d 100644 --- a/components/Carousel.vue +++ b/components/Carousel.vue @@ -28,6 +28,7 @@ onMounted(() => {
-
-
-

+

+
+

{{ $t(topic) }}

-
+
diff --git a/components/Typography.vue b/components/Typography.vue index 8151ac7..849b6b2 100644 --- a/components/Typography.vue +++ b/components/Typography.vue @@ -25,7 +25,7 @@ $defineProps<{ }}

- + {{ link?.name }} diff --git a/components/section/GradientCard.vue b/components/section/GradientCard.vue index cd9b523..654865b 100644 --- a/components/section/GradientCard.vue +++ b/components/section/GradientCard.vue @@ -21,7 +21,7 @@ const colors = [