mirror of
				https://github.com/telekom-security/tpotce.git
				synced 2025-11-04 14:32:54 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			494 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			494 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
FROM alpine:3.19
 | 
						|
#
 | 
						|
# Include dist
 | 
						|
COPY dist/ /root/dist/
 | 
						|
#
 | 
						|
# Install packages
 | 
						|
RUN apk --no-cache -U add redis shadow && \
 | 
						|
    cp /root/dist/redis.conf /etc && \
 | 
						|
#
 | 
						|
# Setup user and group
 | 
						|
    groupmod -g 2000 redis && \
 | 
						|
    usermod -u 2000 redis && \
 | 
						|
#
 | 
						|
# Clean up
 | 
						|
    apk del --purge \ 
 | 
						|
            shadow && \
 | 
						|
    rm -rf /root/* \
 | 
						|
           /tmp/* \
 | 
						|
           /var/tmp/* \
 | 
						|
           /var/cache/apk/*
 | 
						|
#
 | 
						|
# Start redis
 | 
						|
STOPSIGNAL SIGKILL
 | 
						|
USER redis:redis
 | 
						|
CMD ["redis-server", "/etc/redis.conf"]
 |