25 lines
		
	
	
	
		
			616 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			616 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
FROM python:3.13.1-alpine3.20
 | 
						|
 | 
						|
ARG STACOSYS_VERSION=3.4
 | 
						|
ARG STACOSYS_FILENAME=stacosys-${STACOSYS_VERSION}-py3-none-any.whl
 | 
						|
 | 
						|
RUN apk update && apk add bash && apk add wget
 | 
						|
 | 
						|
# Timezone
 | 
						|
RUN apk add tzdata
 | 
						|
RUN cp /usr/share/zoneinfo/Europe/Paris /etc/localtime
 | 
						|
RUN echo "Europe/Paris" >  /etc/timezone
 | 
						|
 | 
						|
# Clean apk cache
 | 
						|
RUN rm -rf /var/cache/apk/* 
 | 
						|
 | 
						|
COPY docker/docker-init.sh /usr/local/bin/
 | 
						|
RUN chmod +x usr/local/bin/docker-init.sh
 | 
						|
 | 
						|
RUN cd /
 | 
						|
COPY dist/${STACOSYS_FILENAME} /
 | 
						|
RUN python3 -m pip install ${STACOSYS_FILENAME} --target /stacosys
 | 
						|
RUN rm -f ${STACOSYS_FILENAME}
 | 
						|
 | 
						|
WORKDIR /stacosys
 | 
						|
CMD ["docker-init.sh"]
 |