mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-12-28 05:35:51 +01:00
Hard fix docker permission (#16)
This commit is contained in:
parent
19c38c61b3
commit
ec95b6a5aa
@ -26,8 +26,8 @@ RUN addgroup -g 101 -S telegram-bot-api \
|
||||
&& adduser -S -D -H -u 101 -h ${TELEGRAM_WORK_DIR} -s /sbin/nologin -G telegram-bot-api -g telegram-bot-api telegram-bot-api \
|
||||
&& chmod +x /docker-entrypoint.sh \
|
||||
&& mkdir -p ${TELEGRAM_WORK_DIR} ${TELEGRAM_TEMP_DIR} \
|
||||
&& chown telegram-bot-api:telegram-bot-api ${TELEGRAM_WORK_DIR} \
|
||||
&& chown nobody:nobody ${TELEGRAM_TEMP_DIR}
|
||||
&& chown telegram-bot-api:telegram-bot-api ${TELEGRAM_WORK_DIR} ${TELEGRAM_TEMP_DIR}\
|
||||
&& chmod 666 ${TELEGRAM_TEMP_DIR}
|
||||
USER telegram-bot-api:telegram-bot-api
|
||||
|
||||
HEALTHCHECK CMD curl -f http://localhost:8082/ || exit 1
|
||||
|
@ -5,7 +5,9 @@ set -e
|
||||
USERNAME=telegram-bot-api
|
||||
GROUPNAME=telegram-bot-api
|
||||
|
||||
chown ${USERNAME}:${GROUPNAME} "${TELEGRAM_WORK_DIR}"
|
||||
chown ${USERNAME}:${GROUPNAME} "${TELEGRAM_WORK_DIR}" "${TELEGRAM_TEMP_DIR}"
|
||||
|
||||
chmod 666 "${TELEGRAM_TEMP_DIR}"
|
||||
|
||||
if [ -n "${1}" ]; then
|
||||
exec "${*}"
|
||||
|
Loading…
Reference in New Issue
Block a user