16 lines
		
	
	
		
			517 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			517 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
FROM alpine
 | 
						|
 | 
						|
RUN apk --no-cache add python3 inkscape bash imagemagick ghostscript ttf-opensans
 | 
						|
RUN apk --no-cache add py3-pip && pip3 install --break-system-packages django tzdata gunicorn
 | 
						|
 | 
						|
ADD backend /root/zetikettes
 | 
						|
 | 
						|
RUN mkdir -p /usr/share/fonts/TTF \
 | 
						|
    && cp /root/zetikettes/fonts/*.ttf /usr/share/fonts/TTF/ \
 | 
						|
    && fc-cache -fv
 | 
						|
 | 
						|
 | 
						|
# the script will look for templates in /data
 | 
						|
WORKDIR /root/zetikettes/zetikettes
 | 
						|
CMD /usr/bin/gunicorn zetikettes.wsgi -b 0.0.0.0:8000 --timeout 600 --forwarded-allow-ips="*"
 |