mirror of
https://github.com/pldubouilh/gossa
synced 2025-12-06 08:22:32 +01:00
ci: add user and mount dir under home, delete redundant entrypoint
Signed-off-by: rare-magma <rare-magma@posteo.eu>
This commit is contained in:
parent
c0d7616101
commit
d4a60b3ece
2 changed files with 5 additions and 6 deletions
|
|
@ -5,9 +5,10 @@ RUN make
|
|||
|
||||
FROM docker.io/library/alpine:3.20
|
||||
ENV UID="1000" GID="1000" HOST="0.0.0.0" PORT="8001" PREFIX="/" FOLLOW_SYMLINKS="false" SKIP_HIDDEN_FILES="true" DATADIR="/shared" READONLY="false" VERB="false"
|
||||
RUN apk add --no-cache su-exec
|
||||
COPY ./support/entrypoint.sh /entrypoint.sh
|
||||
RUN addgroup -g ${GID} user \
|
||||
&& adduser -D -u ${UID} -G user user
|
||||
COPY --from=builder /gossaSrc/gossa /gossa
|
||||
USER nobody
|
||||
ENTRYPOINT "/entrypoint.sh"
|
||||
USER ${UID}:${GID}
|
||||
WORKDIR /home/user/${DATADIR}
|
||||
ENTRYPOINT /gossa -h ${HOST} -p ${PORT} -k=${SKIP_HIDDEN_FILES} -ro=${READONLY} --symlinks=${FOLLOW_SYMLINKS} --prefix=${PREFIX} --verb=${VERB} ${DATADIR}
|
||||
HEALTHCHECK --timeout=5s --start-period=5s --retries=3 CMD wget --no-verbose --tries=1 --spider 127.0.0.1:8001 || exit 1
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/sh
|
||||
exec su-exec ${UID}:${GID} /gossa -h ${HOST} -p ${PORT} -k=${SKIP_HIDDEN_FILES} -ro=${READONLY} --symlinks=${FOLLOW_SYMLINKS} --prefix=${PREFIX} --verb=${VERB} ${DATADIR}
|
||||
Loading…
Reference in a new issue