Skip to content

Commit

Permalink
Fix 'Docker' configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
lycantropos committed May 14, 2023
1 parent 6468019 commit 1781dd2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
12 changes: 3 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,12 @@ ARG IMAGE_VERSION

FROM ${IMAGE_NAME}:${IMAGE_VERSION}

RUN pip install --upgrade pip setuptools

WORKDIR /opt/sect

COPY requirements.txt .
RUN pip install -r requirements.txt

COPY requirements-tests.txt .
RUN pip install -r requirements-tests.txt

COPY pyproject.toml .
COPY README.md .
COPY pytest.ini .
COPY setup.py .
COPY sect sect
COPY tests tests

RUN pip install -e .[tests]
4 changes: 1 addition & 3 deletions docker-compose.cpython.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ services:
- IMAGE_VERSION=${CPYTHON_IMAGE_VERSION}
image: lycantropos/sect-cpython:6.1.0
volumes:
- ./pytest.ini:/opt/sect/pytest.ini
- ./pyproject.toml:/opt/sect/pyproject.toml
- ./README.md:/opt/sect/README.md
- ./requirements-tests.txt:/opt/sect/requirements-tests.txt
- ./requirements.txt:/opt/sect/requirements.txt
- ./sect:/opt/sect/sect
- ./setup.py:/opt/sect/setup.py
- ./tests:/opt/sect/tests
Expand Down
4 changes: 1 addition & 3 deletions docker-compose.pypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ services:
- IMAGE_VERSION=${PYPY_IMAGE_VERSION}
image: lycantropos/sect-pypy:6.1.0
volumes:
- ./pytest.ini:/opt/sect/pytest.ini
- ./pyproject.toml:/opt/sect/pyproject.toml
- ./README.md:/opt/sect/README.md
- ./requirements-tests.txt:/opt/sect/requirements-tests.txt
- ./requirements.txt:/opt/sect/requirements.txt
- ./sect:/opt/sect/sect
- ./setup.py:/opt/sect/setup.py
- ./tests:/opt/sect/tests
Expand Down

0 comments on commit 1781dd2

Please sign in to comment.