22 lines
		
	
	
		
			617 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			617 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
# syntax=docker/dockerfile:1
 | 
						|
FROM python:3.10.4-alpine
 | 
						|
 | 
						|
WORKDIR /app
 | 
						|
COPY ./dist/bot/build/kdb-bot/ .
 | 
						|
COPY ./dist/bot/build/requirements.txt .
 | 
						|
 | 
						|
RUN python -m pip install --upgrade pip
 | 
						|
 | 
						|
RUN apk update
 | 
						|
RUN apk add --update alpine-sdk linux-headers
 | 
						|
RUN apk add bash
 | 
						|
RUN apk add nano
 | 
						|
 | 
						|
RUN pip install -r requirements.txt --extra-index-url https://pip.sh-edraft.de
 | 
						|
RUN pip install flask[async]
 | 
						|
 | 
						|
# RUN pip install dnspython==2.2.1 # https://stackoverflow.com/questions/75137717/eventlet-dns-python-attribute-error-module-dns-rdtypes-has-no-attribute-any
 | 
						|
# ^ probably fixed py package updates
 | 
						|
 | 
						|
CMD [ "bash", "/app/bot/bot"]
 |