Switched to docker compose and wasted hours trying to have standalone firefox
This commit is contained in:
		
							
								
								
									
										10
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								Dockerfile
									
									
									
									
									
								
							| @@ -1,6 +1,8 @@ | ||||
| FROM python:latest | ||||
|  | ||||
| ENV TZ Euopre/Zurich | ||||
|  | ||||
|  | ||||
| RUN echo "deb http://deb.debian.org/debian/ unstable main contrib non-free" >> /etc/apt/sources.list | ||||
| RUN apt-get update && apt-get install -y \ | ||||
| evince \ | ||||
| @@ -16,7 +18,6 @@ RUN wget https://github.com/mozilla/geckodriver/releases/download/v0.31.0/geckod | ||||
| RUN tar -x geckodriver -zf geckodriver-v0.31.0-linux64.tar.gz -O > /usr/bin/geckodriver | ||||
| RUN chmod +x /usr/bin/geckodriver | ||||
| RUN rm geckodriver-v0.31.0-linux64.tar.gz | ||||
| RUN echo "127.0.0.1 localhost" >> /etc/hosts | ||||
|  | ||||
|  | ||||
| RUN useradd --create-home --shell /bin/bash --uid 1001 autonews | ||||
| @@ -24,15 +25,12 @@ RUN useradd --create-home --shell /bin/bash --uid 1001 autonews | ||||
| # home directory needed for pip package installation | ||||
| RUN mkdir -p /app/auto_news | ||||
| RUN chown -R autonews:autonews /app | ||||
|  | ||||
|  | ||||
| USER autonews | ||||
| RUN export PATH=/home/autonews/.local/bin:$PATH | ||||
|  | ||||
|  | ||||
| COPY requirements.txt /app/ | ||||
| RUN python3 -m pip install -r /app/requirements.txt | ||||
| COPY app /app/auto_news | ||||
| WORKDIR /app/auto_news | ||||
|  | ||||
| RUN python3 -m pip install -r requirements.txt | ||||
|  | ||||
| ENTRYPOINT ["python3", "runner.py"] | ||||
		Reference in New Issue
	
	Block a user
	 Remy Moll
					Remy Moll