19 lines
		
	
	
		
			386 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			386 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
FROM python:3.9.4-slim
 | 
						|
 | 
						|
# set work directory
 | 
						|
WORKDIR /app
 | 
						|
 | 
						|
# set env variables
 | 
						|
ENV PYTHONDONTWRITEBYTECODE 1
 | 
						|
ENV PYTHONUNBUFFERED 1
 | 
						|
 | 
						|
RUN apt-get update
 | 
						|
RUN apt-get install -y python3-dev gcc libc-dev libffi-dev
 | 
						|
RUN apt-get -y install libpq-dev gcc 
 | 
						|
 | 
						|
# install dependencies
 | 
						|
COPY requirements.txt .
 | 
						|
RUN pip install --upgrade pip
 | 
						|
RUN pip install -r requirements.txt
 | 
						|
# copy project
 | 
						|
COPY . . |