Skip to content

Commit bb44f9b

Browse files
fix: Allow running with environment variables only
The application would previously error out if the config file was not found, even when environment variables were provided. This was because the Dockerfile specified a default config file path, which made the application believe a config file was explicitly required. This change modifies the config loading logic to only error out if a config file is explicitly specified but not found, and removes the default config file path from the Dockerfile.
1 parent 2c66959 commit bb44f9b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ ENV GITHUB_SERVER=""
2121
ENV GITLAB_SERVER=""
2222
ENV LOCAL_GIT_PATH=/var/lib/gobookmarks/localgit
2323
ENV GOBM_ENV_FILE=/etc/gobookmarks/gobookmarks.env
24-
ENV GOBM_CONFIG_FILE=/etc/gobookmarks/config.json
2524
EXPOSE 8080
2625
EXPOSE 8443
2726
COPY gobookmarks /bin/gobookmarks

0 commit comments

Comments
 (0)