Skip to content

Commit 8e215e3

Browse files
author
codewitching
committed
fix python path for tests in docker
1 parent a4854b2 commit 8e215e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ FROM python:3.12-slim AS test
55

66
WORKDIR /app
77

8+
# THIS LINE FIXES EVERYTHING
9+
ENV PYTHONPATH=/app
10+
811
COPY requirements.txt .
912
RUN pip install --no-cache-dir -r requirements.txt pytest
1013

@@ -13,6 +16,7 @@ COPY . .
1316
CMD ["pytest"]
1417

1518

19+
1620
# ======================
1721
# Stage 2: Production stage
1822
# ======================

0 commit comments

Comments
 (0)