Initial commit
This commit is contained in:
27
7/Dockerfile
Normal file
27
7/Dockerfile
Normal file
@@ -0,0 +1,27 @@
|
||||
ARG VERSION=7
|
||||
ARG UID=200010
|
||||
ARG GID=200010
|
||||
|
||||
FROM valkey/valkey:${VERSION}-alpine
|
||||
|
||||
ARG UID
|
||||
ARG GID
|
||||
|
||||
LABEL maintainer="Lukas Raub titanz@pm.me"
|
||||
|
||||
RUN apk -U upgrade \
|
||||
&& apk add libstdc++ shadow
|
||||
|
||||
RUN --network=none \
|
||||
usermod -u ${UID} valkey \
|
||||
&& groupmod -g ${GID} valkey \
|
||||
&& find / -user 999 -exec chown -h valkey {} \; \
|
||||
&& find / -group 1000 -exec chgrp -h valkey {} \; \
|
||||
&& apk del shadow \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
|
||||
COPY --from=git.conorz.at/titanz-containers/hardened_malloc:latest /install /usr/local/lib/
|
||||
ENV LD_PRELOAD="/usr/local/lib/libhardened_malloc.so"
|
||||
|
||||
USER valkey
|
Reference in New Issue
Block a user