Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
# Default command: neutral by default; docker-compose overrides when needed
CMD ["python", "-V"]
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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