Upload files to "/"
This commit is contained in:
31
seleniumDockerfile
Normal file
31
seleniumDockerfile
Normal file
@@ -0,0 +1,31 @@
|
||||
#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/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user