All checks were successful
Build / Build & push new image (push) Successful in 10m38s
28 lines
593 B
Docker
28 lines
593 B
Docker
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"
|