Tasks.md icon indicating copy to clipboard operation
Tasks.md copied to clipboard

DockerFile - tasks and config folders are hardcode

Open KnightDoom opened this issue 5 months ago • 0 comments

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

KnightDoom avatar Aug 27 '24 17:08 KnightDoom