Skip to content

Commit 9c86755

Browse files
Fix Docker build: simplify file copying
1 parent b7ff30a commit 9c86755

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
77
g++ \
88
&& rm -rf /var/lib/apt/lists/*
99

10-
COPY requirements.txt setup.py ./
11-
COPY src/__init__.py src/__init__.py
12-
1310
RUN pip install --no-cache-dir --upgrade pip && \
1411
pip install --no-cache-dir numpy scipy matplotlib pytest pytest-cov
1512

@@ -21,6 +18,7 @@ FROM dev as test
2118
CMD ["pytest", "tests/", "-v", "--cov=src", "--cov-report=term-missing", "-k", "not parallel"]
2219

2320
FROM base as prod
21+
COPY setup.py ./
2422
COPY src/ src/
2523
COPY data/ data/
2624
RUN pip install -e . --no-deps

Dockerfile.multi

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
88
g++ \
99
&& rm -rf /var/lib/apt/lists/*
1010

11-
COPY requirements.txt setup.py ./
12-
COPY src/__init__.py src/__init__.py
13-
1411
RUN pip install --no-cache-dir --upgrade pip && \
1512
pip install --no-cache-dir numpy scipy matplotlib pytest pytest-cov
1613

0 commit comments

Comments
 (0)