Skip to content

Commit 2d8a614

Browse files
committed
layer optimization
1 parent 3df285d commit 2d8a614

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

Dockerfile

+3-8
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ EXPOSE 80 443
1919

2020
RUN mkdir /srv/git
2121

22-
VOLUME ["/srv/git"]
23-
VOLUME ["/var/cache/cgit"]
22+
VOLUME ["/srv/git", "/var/cache/cgit"]
23+
24+
ENV CGIT_TITLE="My cgit interface" CGIT_DESC="Super fast interface to my git repositories" CGIT_VROOT="/" CGIT_SECTION_FROM_STARTPATH=0 CGIT_MAX_REPO_COUNT=50
2425

2526
COPY cgitrc.template /etc/
2627

@@ -32,9 +33,3 @@ COPY 404.html /usr/share/nginx/html/
3233
COPY 401.html /usr/share/nginx/html/
3334

3435
COPY 99_start.sh /etc/my_init.d/
35-
36-
ENV CGIT_TITLE "My cgit interface"
37-
ENV CGIT_DESC "Super fast interface to my git repositories"
38-
ENV CGIT_VROOT "/"
39-
ENV CGIT_SECTION_FROM_STARTPATH 0
40-
ENV CGIT_MAX_REPO_COUNT 50

0 commit comments

Comments
 (0)