diff --git a/.drone.yml b/.drone.yml index a499649..01eb176 100644 --- a/.drone.yml +++ b/.drone.yml @@ -31,8 +31,8 @@ steps: script: - cd /var/www/todo - git fetch - - git reset --hard ${DRONE_COMMIT} - git checkout ${DRONE_BRANCH} + - git reset --hard ${DRONE_COMMIT} - docker-compose down - docker-compose up -d --build - docker image prune -f diff --git a/Dockerfile b/Dockerfile index d567e17..f2187d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM python:3.11 -WORKDIR /app +#WORKDIR /app -CMD ["python3", "test.py"] \ No newline at end of file +# CMD ["python3", "test.py"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 094c8b2..092d07f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,4 +12,6 @@ services: environment: TZ: "Asia/Shanghai" tty: true + working_dir: /app + command: ["python3", "test.py"]