feat: Reduce image size from ~930M to ~85M
This commit is contained in:
		@@ -1,7 +1,9 @@
 | 
			
		||||
FROM python:latest
 | 
			
		||||
FROM alpine:latest
 | 
			
		||||
RUN apk update && apk add python3 py3-pip
 | 
			
		||||
ADD . /opt/imgs
 | 
			
		||||
RUN mkdir -p /opt/imgs/uploads
 | 
			
		||||
WORKDIR /opt/imgs
 | 
			
		||||
RUN pip install --upgrade pip && pip install --requirement requirements.txt
 | 
			
		||||
RUN pip install gunicorn
 | 
			
		||||
EXPOSE 5000
 | 
			
		||||
CMD gunicorn imgs:app --bind :5000
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user