28 lines
		
	
	
		
			No EOL
		
	
	
		
			656 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			No EOL
		
	
	
		
			656 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM python:3.12.10
 | |
| 
 | |
| WORKDIR /app
 | |
| 
 | |
| # apt install
 | |
| RUN apt-get update && \
 | |
|     DEBAIN_FRONTEND=noninteractive apt-get install -qy ffmpeg libpq-dev libmagic1 libmagic-dev locales
 | |
| 
 | |
| # locale
 | |
| COPY ./env/locale.gen /env/locale.gen
 | |
| RUN locale-gen
 | |
| COPY ./env/locale.conf /env/locale.conf
 | |
| 
 | |
| # timezone
 | |
| COPY ./env/timezone /etc/timezone
 | |
| 
 | |
| # pip3 install
 | |
| COPY ./requirements.txt /app/requirements.txt
 | |
| COPY ./ffmpeg_python-0.2.0-py3-none-any.whl /app/ffmpeg_python-0.2.0-py3-none-any.whl
 | |
| 
 | |
| RUN pip3 install ffmpeg_python-0.2.0-py3-none-any.whl
 | |
| RUN pip3 install -r /app/requirements.txt
 | |
| 
 | |
| # install playwright
 | |
| RUN playwright install-deps
 | |
| RUN playwright install
 | |
| 
 | |
| EXPOSE 50051 |