From 2e4ab22717c6b76137fcf02636319a8e08142c4b Mon Sep 17 00:00:00 2001 From: XinWei <2718030729@qq.com> Date: Sat, 27 Jul 2024 17:01:24 +0800 Subject: [PATCH] init --- .drone.yml | 8 ++++---- Dockerfile | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 Dockerfile diff --git a/.drone.yml b/.drone.yml index 83ff5ff..c83124c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,7 +13,7 @@ steps: # commands: # - npm run test -#- name: deploy -# image: nginx:1.21 -# commands: -# - cp -r build/* /usr/share/nginx/html \ No newline at end of file +- name: deploy + image: nginx:1.21 + commands: + - cp -r build/* /usr/share/nginx/html \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..038eaab --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM nginx:1.21 + +# 将本地的 build 文件夹内容复制到 Nginx 默认的 web 目录 +COPY build/ /usr/share/nginx/html/