pull/700/head
Patrick Devaney 6 days ago
parent 5709a89b23
commit 9637a6ec04

@ -14,16 +14,16 @@ WORKDIR /usr/src/app
# Copy the entire project into the container
COPY . .
# Install Poetry and necessary dependencies
# Install Poetry
RUN pip install poetry
# Configure Poetry to avoid virtual environments and install dependencies
RUN poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi
# Install pytest
# Install pytest explicitly
RUN pip install pytest
# Ensure pytest is installed and available
# Check if pytest is installed successfully
RUN pytest --version || echo "pytest not found"
# Ensure the logs directory has correct permissions
@ -32,7 +32,7 @@ RUN mkdir -p /usr/src/app/logs && chmod -R 777 /usr/src/app/logs
# Ensure that the PATH includes the directory where pytest is installed
ENV PATH="/usr/local/bin:$PATH"
# List files to verify pytest and tests exist
# List files in /usr/src/app to check if pytest is installed correctly
RUN ls -l /usr/src/app
# Set the working directory to the tests directory inside the container

Loading…
Cancel
Save