Skip to content

Commit bba8030

Browse files
pplusdomain@gmail.compplusdomain@gmail.com
pplusdomain@gmail.com
authored and
pplusdomain@gmail.com
committedApr 27, 2017
install cpan deps before running the app
Changes to code will not make the cpan deps be reconstructed
1 parent 8d1f77d commit bba8030

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎Dockerfile

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ RUN cpanm Carton
55

66
WORKDIR /opt/project-x
77

8-
COPY ./ /opt/project-x
8+
COPY ./cpanfile cpanfile
9+
10+
RUN carton install
911

1012
RUN groupadd -r xman -g 1001 \
1113
&& useradd -u 1001 -r -g xman -d /opt/project-x/ -s /sbin/nologin -c "Docker image user" xman \
1214
&& chown -R xman:xman /opt/project-x/
1315

14-
RUN carton install
16+
COPY ./ /opt/project-x
1517

1618
USER 1001
1719
EXPOSE 8080

0 commit comments

Comments
 (0)
Please sign in to comment.