diff --git a/Dockerfile b/Dockerfile index d5e9205..0952697 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,9 @@ RUN apt-get update && apt-get install -y \ && wget https://storage.googleapis.com/chrome-for-testing-public/126.0.6478.55/linux64/chromedriver-linux64.zip \ && unzip chromedriver-linux64.zip \ && mv chromedriver-linux64/chromedriver /usr/local/bin/ \ - && chmod +x /usr/local/bin/chromedriver + && chmod +x /usr/local/bin/chromedriver \ + && apt-get install xvfb \ + # 安裝Google Chrome RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ @@ -24,7 +26,8 @@ WORKDIR /app COPY requirements.txt . #COPY beaapi-0.0.2-py3-none-any.whl # Install any dependencies -RUN pip3 install -r requirements.txt +RUN pip3 install -r requirements.txt && pip3 install xvfbwrapper + #RUN pip install beaapi-0.0.2-py3-none-any.whl # Copy the content of the local src directory to the working directory in the container COPY . . \ No newline at end of file