Browse Source

init(初始化): 🎉

pull/10/head
Jiale 2 months ago
parent
commit
72c17c2316
  1. 2
      .drone.yml
  2. 2
      scripts/Dockerfile
  3. 2
      scripts/nginx.conf

2
.drone.yml

@ -29,7 +29,7 @@ steps:
commands:
- docker stop alert-front || true
- docker rm alert-front || true
- docker run -d --restart always --name alert-front -p 8080:8080 alert-front:latest
- docker run -d --restart always --name alert-front -p 5000:5000 alert-front:latest
volumes:
- name: dockersock

2
scripts/Dockerfile

@ -29,5 +29,5 @@ COPY --from=builder /app/dist /usr/share/nginx/html
# 拷贝 nginx 配置
COPY --from=builder /app/scripts/nginx.conf /etc/nginx/nginx.conf
EXPOSE 8080
EXPOSE 5000
CMD ["nginx", "-g", "daemon off;"]

2
scripts/nginx.conf

@ -11,7 +11,7 @@ http {
sendfile on;
server {
listen 8080;
listen 5000;
server_name localhost;
# 静态资源和前端页面

Loading…
Cancel
Save