32 lines
798 B
Plaintext
32 lines
798 B
Plaintext
#image that has selenium and chrome installed, official by selenium
|
|
FROM selenium/standalone-chrome:4.10.0-20230607
|
|
|
|
|
|
|
|
#will be the working directory later
|
|
#RUN mkdir /pyapp
|
|
#sets the new working directory
|
|
WORKDIR /pyapp
|
|
|
|
#user permissions heikel !!!!!
|
|
USER root
|
|
RUN apt-get update && apt-get install -y \
|
|
python3-pip
|
|
#install required packages
|
|
ADD requirements.txt .
|
|
RUN pip3 install -r requirements.txt --user
|
|
RUN export PATH=/home/seluser/.local/bin:$PATH
|
|
|
|
|
|
USER 1001
|
|
|
|
|
|
#unbuffered output to stdout
|
|
#used it that Python gives out all prints, if not, it will buffer them until many prints done
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
#copies the whole directory into the working directory
|
|
COPY . /pyapp/
|
|
|
|
|