BaldissaraMatheus / Tasks.md

A self-hosted, Markdown file based task management board
https://hub.docker.com/r/baldissaramatheus/tasks.md
MIT License
765 stars 32 forks source link

DockerFile - tasks and config folders are hardcode #113

Open KnightDoom opened 2 weeks ago

KnightDoom commented 2 weeks ago

the Docker file provides an ENV variable to allow setting the path_to_config and path_to_tasks directories.

ENV CONFIG_DIR="/config"
ENV TASKS_DIR="/tasks"

However the Entry point does not consider this and hardcodes it in the chown commands

ENTRYPOINT mkdir -p /config/stylesheets/ && \
    mkdir -p /config/images/ && \
    mkdir -p /config/sort/ && \
    cp -r /config/stylesheets/. /stylesheets/ && \
    cp -r /stylesheets/. /config/stylesheets/ && \
    chown -R $PUID:$PGID /config && \
    chown -R $PUID:$PGID /tasks && \
    node /api/server.js