Skip to content

Commit f8291a6

Browse files
Stanford997Linchen-Xu
authored andcommitted
[Fix]: docker ignore e2e testing
1 parent 64feb8f commit f8291a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

be_repo/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use an official Python runtime as a parent image
2-
FROM python:3.10-slim
2+
FROM python:3.9-slim
33

44
# Set the workdir to avoid the "pytest Collecting hang"
55
WORKDIR /app
@@ -12,7 +12,7 @@ RUN pip3 install -r requirements.txt
1212

1313
# Install pytest for lab3(Even though it's ugly, from my perspective we should not add test codes in docker.)
1414
RUN pip3 install pytest
15-
RUN pytest
15+
RUN pytest --ignore=tests/test_e2e.py
1616

1717
# Run the command to start the application
1818
CMD ["python3", "app.py"]

0 commit comments

Comments
 (0)