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/