Skip to content

Commit 21fa7fe

Browse files
committed
update dockerfile
1 parent a93b647 commit 21fa7fe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: Dockerfile

+4-2
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,14 @@ RUN { \
3333
RUN a2enmod rewrite
3434

3535
ENV SSPANEL_VERSION 4.0.0
36-
VOLUME /var/www/html
3736

3837
WORKDIR /var/www
3938

4039
# Install sspanel
41-
RUN rm -rf /var/www/html && git clone -b 4.x-dev https://github.com/orvice/ss-panel.git /var/www/html
40+
RUN rm -rf /var/www/html
41+
42+
VOLUME /var/www/html
43+
RUN git clone -b 4.x-dev https://github.com/orvice/ss-panel.git /var/www/html
4244

4345
# Install Composer
4446
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

0 commit comments

Comments
 (0)