26 lines
		
	
	
	
		
			553 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			553 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
# syntax=docker/dockerfile:1
 | 
						|
FROM python:3
 | 
						|
ENV PYTHONDONTWRITEBYTECODE=1
 | 
						|
ENV PYTHONUNBUFFERED=1
 | 
						|
 | 
						|
WORKDIR /usr/src/app
 | 
						|
 | 
						|
# install system dependencies
 | 
						|
RUN apt-get update && apt-get install -y netcat-traditional
 | 
						|
 | 
						|
# install python dependencies
 | 
						|
COPY requirements.txt .
 | 
						|
RUN pip install --upgrade pip
 | 
						|
RUN pip install -r requirements.txt
 | 
						|
 | 
						|
# copy entrypoint.sh
 | 
						|
COPY ./entrypoint.sh .
 | 
						|
RUN sed -i 's/\r$//g' /usr/src/app/entrypoint.sh
 | 
						|
RUN chmod +x /usr/src/app/entrypoint.sh
 | 
						|
 | 
						|
 | 
						|
# copy project
 | 
						|
COPY . .
 | 
						|
 | 
						|
# run entrypoint.sh
 | 
						|
ENTRYPOINT ["/usr/src/app/entrypoint.sh"]
 |