Initial commit
All checks were successful
Build / Build & push new image (push) Successful in 10m38s
All checks were successful
Build / Build & push new image (push) Successful in 10m38s
This commit is contained in:
27
Dockerfile
Normal file
27
Dockerfile
Normal file
@@ -0,0 +1,27 @@
|
||||
ARG UID=200006
|
||||
ARG GID=200006
|
||||
|
||||
FROM gitea/gitea:latest-rootless
|
||||
|
||||
LABEL maintainer="Lukas Raub titanz@pm.me"
|
||||
|
||||
ARG UID
|
||||
ARG GID
|
||||
|
||||
USER root
|
||||
|
||||
RUN apk -U upgrade \
|
||||
&& apk add libstdc++ shadow
|
||||
|
||||
RUN --network=none \
|
||||
usermod -u ${UID} git \
|
||||
&& groupmod -g ${GID} git \
|
||||
&& find / -user 1000 -exec chown -h git {} \; \
|
||||
&& find / -group 1000 -exec chgrp -h git {} \; \
|
||||
&& apk del shadow \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
USER git
|
||||
|
||||
COPY --from=git.conorz.at/titanz-containers/hardened_malloc:latest /install /usr/local/lib/
|
||||
ENV LD_PRELOAD="/usr/local/lib/libhardened_malloc.so"
|
Reference in New Issue
Block a user