diff --git a/Dockerfile b/Dockerfile index cbfcba2..3c0c622 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,5 +20,5 @@ RUN pip install --upgrade pip && pip install -r requirements.txt # Copy project files COPY . . -# Default command (runs pytest by default) -CMD ["pytest", "-q"] \ No newline at end of file +# Default command: neutral by default; docker-compose overrides when needed +CMD ["python", "-V"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 1763253..d95b3af 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,14 +1,14 @@ version: "3.9" services: - app: + mailing: build: context: . dockerfile: Dockerfile - container_name: python_app + container_name: python_mailing volumes: - .:/app - command: pytest -q + command: tail -f /dev/null environment: - PYTHONUNBUFFERED=1 tty: true \ No newline at end of file