Fix temp dir permissions

This commit is contained in:
Marco Aceti 2020-11-25 15:51:11 +01:00
parent ec95b6a5aa
commit a833e5b494
Signed by: MarcoBuster
GPG Key ID: E4ABA81298E4F14D
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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 "${*}"