Skip to content

Commit

Permalink
Allow CONFIG-DIR build-arg for building custom configs (#640)
Browse files Browse the repository at this point in the history
  • Loading branch information
i3149 authored Dec 8, 2023
1 parent cb8e42a commit 6a8bba1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ RUN addgroup -g 1000 ktranslate && \
# groupadd --gid 1000 ktranslate; \
# useradd --home-dir /etc/ktranslate --gid ktranslate --no-create-home --uid 1000 ktranslate

COPY --chown=ktranslate:ktranslate config/ /etc/ktranslate/
# Some people want to specify an alternative config dir. This lets them override with --build-arg CONFIG-DIR=my-new-dir
ARG CONFIG_DIR=config
COPY --chown=ktranslate:ktranslate ${CONFIG_DIR}/ /etc/ktranslate/
COPY --chown=ktranslate:ktranslate lib/ /etc/ktranslate/

# maxmind db
Expand Down

0 comments on commit 6a8bba1

Please sign in to comment.