diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a620214 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM node:22 + +WORKDIR /app + +COPY yarn.lock package.json ./ + +RUN npm config set registry https://registry.npmmirror.com + +RUN yarn config set registry https://registry.npmmirror.com + +RUN yarn install + +COPY . . + +EXPOSE 5173 + +CMD ["yarn", "dev", "--host", "0.0.0.0"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..e99d4e8 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +version: "3.5" +services: + k5web: + build: . + container_name: k5web + network_mode: "bridge" + ports: + - "5173:5173" + environment: + - TZ=Asia/Shanghai + restart: always