Selenium-Script / Dockerfile
Container's picture
Update Dockerfile
fe9a7ea verified
raw
history blame
617 Bytes
FROM selenium/standalone-chrome:latest
# Set up a new user named "user" with user ID 1000
RUN useradd -m -u 1000 user
# Switch to the "user" user
USER user
RUN apt-get update && apt-get install -y --no-install-recommends \
# build-essential \
git \
python3 \
# python3-dev \
# python3-numpy \
python3-pip \
# python3-setuptools \
openssl \
# libffi-dev \
# libssl-dev \
# python3-wheel \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip3 install -r requirements.txt
RUN pip3 list
WORKDIR /app
COPY . /app
EXPOSE 7860
ENTRYPOINT ["python3", "main.py"]