Skip to content

Commit f314d85

Browse files
committed
git command needs git installed first
1 parent b5168fc commit f314d85

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.docker/Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ ENV DEBIAN_FRONTEND=noninteractive
44
ENV TZ=Etc/UTC
55

66
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \
7-
&& echo $TZ > /etc/timezone \
8-
&& git config --global --add safe.directory /var/www/html
7+
&& echo $TZ > /etc/timezone
98

109
RUN apt-get update \
1110
&& apt-get install -y --no-install-recommends \
@@ -17,7 +16,8 @@ RUN apt-get update \
1716
software-properties-common \
1817
unzip \
1918
wget \
20-
&& a2enmod rewrite
19+
&& a2enmod rewrite \
20+
&& git config --global --add safe.directory /var/www/html
2121

2222
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - \
2323
&& apt-get install -y --no-install-recommends nodejs \

0 commit comments

Comments
 (0)