diff --git a/.gitignore b/.gitignore index eb92f3e..21ba682 100644 --- a/.gitignore +++ b/.gitignore @@ -352,7 +352,6 @@ modules.xml app_test django_project manage.py -Dockerfile start.sh wait-for-it.sh test*xml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b96b51f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM python:3.9-slim-buster + +ENV PYTHONUNBUFFERED=1 + +RUN apt-get update && \ + apt-get install -y git + +WORKDIR /app +COPY . . + +RUN pip install --upgrade pip && \ + pip install poetry && \ + poetry export -f requirements.txt -o requirements.txt --with dev && \ + pip uninstall --yes poetry && \ + pip install --no-cache-dir --upgrade --upgrade-strategy=eager -r requirements.txt diff --git a/docker-compose.yml b/docker-compose.yml index 7230f16..3460b26 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -39,7 +39,6 @@ services: integration-tests-tox: build: context: . - dockerfile: Dockerfile.tox-tests volumes: - .:/app depends_on: @@ -72,7 +71,7 @@ services: broker-rabbitmq: image: rabbitmq:3-management ports: - - 61613:61613 + - 61615:61613 - 15672:15672 volumes: - ./tests/resources/custom-rabbitmq-conf:/etc/rabbitmq/