File tree Expand file tree Collapse file tree 4 files changed +32
-1
lines changed Expand file tree Collapse file tree 4 files changed +32
-1
lines changed Original file line number Diff line number Diff line change
1
+ # Use an official Python image compatible with arm64 architecture
2
+ FROM --platform=linux/arm64 python:3.12-slim
3
+
4
+ # Set environment variables
5
+ ENV POETRY_VERSION=1.8.1
6
+ ENV PATH="/root/.local/bin:$PATH"
7
+ ENV PYTHONPATH="pytest-python-selenium-framework"
8
+
9
+ # Install system dependencies
10
+ RUN apt-get update && apt-get install -y \
11
+ build-essential \
12
+ curl \
13
+ && rm -rf /var/lib/apt/lists/*
14
+
15
+ # Install Poetry
16
+ RUN curl -sSL https://install.python-poetry.org | python3 -
17
+
18
+ # Set the working directory
19
+ WORKDIR pytest-python-selenium-framework
20
+
21
+ # Copy the poetry files to the container
22
+ COPY pyproject.toml poetry.lock* ./
23
+
24
+ # Install the dependencies using Poetry
25
+ RUN poetry install --no-root --only main # Use --only main to skip dev dependencies
26
+
27
+ # Copy the rest of the application code
28
+ COPY . .
29
+
30
+ # Specify the command to run the tests
31
+ CMD ["poetry" , "run" , "pytest" ]
Original file line number Diff line number Diff line change 1
- from pageobjects .text .fill_form import FillForm
1
+ from src . pageobjects .text .fill_form import FillForm
2
2
3
3
4
4
class TestFillForm :
You can’t perform that action at this time.
0 commit comments