mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-12-24 03:05:50 +01:00
Fix temp dir permissions
This commit is contained in:
parent
ec95b6a5aa
commit
a833e5b494
@ -27,7 +27,7 @@ RUN addgroup -g 101 -S 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} ${TELEGRAM_TEMP_DIR}\
|
||||
&& chmod 666 ${TELEGRAM_TEMP_DIR}
|
||||
&& chmod 700 ${TELEGRAM_TEMP_DIR}
|
||||
USER telegram-bot-api:telegram-bot-api
|
||||
|
||||
HEALTHCHECK CMD curl -f http://localhost:8082/ || exit 1
|
||||
|
@ -7,7 +7,7 @@ GROUPNAME=telegram-bot-api
|
||||
|
||||
chown ${USERNAME}:${GROUPNAME} "${TELEGRAM_WORK_DIR}" "${TELEGRAM_TEMP_DIR}"
|
||||
|
||||
chmod 666 "${TELEGRAM_TEMP_DIR}"
|
||||
chmod 700 "${TELEGRAM_TEMP_DIR}"
|
||||
|
||||
if [ -n "${1}" ]; then
|
||||
exec "${*}"
|
||||
|
Loading…
Reference in New Issue
Block a user