mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-19 21:52:27 +00:00
26 lines
529 B
Docker
26 lines
529 B
Docker
FROM alpine:3.20
|
|
#
|
|
# Include dist
|
|
COPY dist/ /root/dist/
|
|
#
|
|
# Install packages
|
|
RUN apk --no-cache -U upgrade && \
|
|
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"]
|