Skip to content

Commit 6a8bba1

Browse files
authored
Allow CONFIG-DIR build-arg for building custom configs (#640)
1 parent cb8e42a commit 6a8bba1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ RUN addgroup -g 1000 ktranslate && \
4040
# groupadd --gid 1000 ktranslate; \
4141
# useradd --home-dir /etc/ktranslate --gid ktranslate --no-create-home --uid 1000 ktranslate
4242

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

4648
# maxmind db

0 commit comments

Comments
 (0)