mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-29 11:48:52 +00:00
24 lines
483 B
Docker
24 lines
483 B
Docker
FROM alpine:3.15
|
|
#
|
|
# Include dist
|
|
COPY dist/ /root/dist/
|
|
#
|
|
# Setup apk and redis
|
|
RUN apk -U --no-cache 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/* && \
|
|
rm -rf /tmp/* /var/tmp/* && \
|
|
rm -rf /var/cache/apk/*
|
|
#
|
|
# Start redis
|
|
STOPSIGNAL SIGKILL
|
|
USER redis:redis
|
|
CMD redis-server /etc/redis.conf
|