uci-nextcloud/Dockerfile

30 lines
935 B
Docker
Raw Permalink Normal View History

2022-11-18 09:00:18 -08:00
FROM nextcloud:fpm-alpine
ADD custom_entrypoint.sh /
# RUN if ! cat etc/group | grep host ; then \
# addgroup --gid ${HOST_GROUP_ID:-1000} host; \
# adduser -u ${HOST_USER_ID:-1000} -G host -g "" -D -H host host; \
# fi
VOLUME /app
VOLUME /user-files
RUN chmod +x /custom_entrypoint.sh &&\
# apk add php81-pecl-imagick &&\
apk add shadow --repository=http://dl-2.alpinelinux.org/alpine/edge/community &&\
apk add bindfs --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing
# add host user
RUN if ! cat /etc/group | grep host ; then \
echo adding a host user to image; \
addgroup --gid 1000 host; \
adduser -u 1000 -G host -g "" -D -H host host; \
else echo host user already exists; \
fi \
&& cat /etc/group | grep host && cat /etc/passwd | grep host
# will still run orginial entrypoint but will now adding this one on
ENTRYPOINT ["/custom_entrypoint.sh"]