Skip to content

Commit fb199fb

Browse files
authored
Merge pull request #299 from jfontan/configurable-repos-in-dockerfile
Make repo dir configurable in Dockerfile
2 parents 7b2f4d6 + 6e4e892 commit fb199fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ RUN mkdir -p /opt/repos
1717

1818
ENV GITBASE_USER=gitbase
1919
ENV GITBASE_PASSWORD=""
20+
ENV GITBASE_REPOS=/opt/repos
2021
EXPOSE 3306
2122

2223
ENV TINI_VERSION v0.17.0
@@ -35,4 +36,4 @@ CMD gitbase server -v \
3536
--port=3306 \
3637
--user="$GITBASE_USER" \
3738
--password="$GITBASE_PASSWORD" \
38-
--git=/opt/repos
39+
--git="$GITBASE_REPOS"

0 commit comments

Comments
 (0)