forked from test-zeus-ai/testzeus-hercules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (23 loc) · 792 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Use an official Python 3.11 image based on Ubuntu
FROM python:3.11-slim
# # Install Playwright and dependencies
# RUN pip install -U playwright && \
# playwright install --with-deps
# Set the working directory in the container
WORKDIR /testzeus-hercules
# Copy only the necessary files for installation
COPY pyproject.toml poetry.lock /testzeus-hercules/
# Install Poetry
RUN pip install poetry
# Install dependencies and the package
RUN poetry install --no-dev
RUN poetry run playwright install --with-deps
# Copy the rest of the project files
COPY . /testzeus-hercules
# Install Hercules
RUN poetry install
# Copy the entrypoint script and make it executable
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Define the entrypoint
ENTRYPOINT ["/entrypoint.sh"]