Added some basic stuff
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		
							
								
								
									
										26
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										26
									
								
								Dockerfile
									
									
									
									
									
								
							@@ -1,28 +1,12 @@
 | 
			
		||||
# Use the official lightweight Python image.
 | 
			
		||||
# https://hub.docker.com/_/python
 | 
			
		||||
FROM python:3.8-slim
 | 
			
		||||
 | 
			
		||||
# Copy local code to the container image.
 | 
			
		||||
ENV APP_HOME /app
 | 
			
		||||
ENV PIP_NO_CACHE_DIR=true
 | 
			
		||||
ADD extractor_service requirements.txt /extractor_service/
 | 
			
		||||
WORKDIR /extractor_service/
 | 
			
		||||
 | 
			
		||||
# Set timezone
 | 
			
		||||
ENV PIP_NO_CACHE_DIR=true
 | 
			
		||||
ENV TZ Europe/Budapest
 | 
			
		||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
 | 
			
		||||
 | 
			
		||||
WORKDIR $APP_HOME
 | 
			
		||||
RUN pip3 install -r requirements.txt
 | 
			
		||||
 | 
			
		||||
ARG RELEASE_ID
 | 
			
		||||
ENV RELEASE_ID ${RELEASE_ID:-""}
 | 
			
		||||
 | 
			
		||||
#Copy requirements to install
 | 
			
		||||
COPY requirements.txt ./
 | 
			
		||||
 | 
			
		||||
# Install production dependencies.
 | 
			
		||||
RUN pip install -r requirements.txt
 | 
			
		||||
 | 
			
		||||
COPY ./src ./src
 | 
			
		||||
 | 
			
		||||
EXPOSE 8080
 | 
			
		||||
 | 
			
		||||
ENTRYPOINT ["gunicorn", "-b", "0.0.0.0:8080", "--workers", "1", "--threads", "8", "app:app"]
 | 
			
		||||
ENTRYPOINT ["python3","main.py"]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user