Skip to content

Commit

Permalink
Update docker playwright install to use npx (Josh-XT#724)
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT authored Jun 15, 2023
1 parent 04dd03d commit 19d8bf3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ FROM ${BASE_IMAGE}
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
apt-get update ; \
apt-get upgrade -y ; \
apt-get install -y --no-install-recommends git build-essential g++ libgomp1 ffmpeg python3 python3-pip python3-dev && \
apt-get install -y --no-install-recommends git build-essential g++ libgomp1 ffmpeg python3 python3-pip python3-dev curl && \
rm -rf /var/lib/apt/lists/*

# Update pip
Expand Down Expand Up @@ -35,7 +35,14 @@ COPY requirements.txt .
ARG HNSWLIB_NO_NATIVE=1
RUN pip install -r requirements.txt
RUN pip install --force-reinstall hnswlib protobuf==3.20.*
RUN playwright install --with-deps

# Install Node.js
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN apt-get install -y nodejs

# Install Playwright
RUN npm install -g playwright
RUN npx playwright install

# Copy local code to the container image.
COPY . .
Expand Down

0 comments on commit 19d8bf3

Please sign in to comment.