You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.3 KiB

1 year ago
FROM python:3.10
# Install Python and pip
RUN apt-get update && apt-get install -y python3 python3-pip && apt install nano
1 year ago
RUN apt-get update && apt-get install -y \
wget unzip \
&& rm -rf /var/lib/apt/lists/* \
&& 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/ \
10 months ago
&& chmod +x /usr/local/bin/chromedriver \
&& apt-get install xvfb \
1 year ago
# 安裝Google Chrome
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | tee /etc/apt/sources.list.d/google-chrome.list \
&& apt-get update && apt-get install -y \
google-chrome-stable \
&& rm -rf /var/lib/apt/lists/*
1 year ago
# Set the working directory in the container
WORKDIR /app
# Copy the dependencies file to the working directory
COPY requirements.txt .
10 months ago
#COPY beaapi-0.0.2-py3-none-any.whl
1 year ago
# Install any dependencies
10 months ago
RUN pip3 install -r requirements.txt && pip3 install xvfbwrapper
#RUN pip install beaapi-0.0.2-py3-none-any.whl
1 year ago
# Copy the content of the local src directory to the working directory in the container
COPY . .