Skip to content

Commit 2bcd145

Browse files
committed
docker
1 parent c0f903d commit 2bcd145

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docker/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ COPY docker/php.ini /etc/php/8.2/cli/conf.d/99-vito.ini
2727
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
2828

2929
# app
30-
COPY . /var/www/html
31-
RUN rm -rf /var/www/html/vendor
32-
RUN rm -rf /var/www/html/.env
30+
RUN rm -rf /var/www/html
31+
RUN git clone -b 1.x https://github.com/vitodeploy/vito.git /var/www/html
32+
RUN git checkout $(git tag -l --merged 1.x --sort=-v:refname | head -n 1)
3333
RUN composer install --no-dev --prefer-dist
3434
RUN chown -R www-data:www-data /var/www/html \
3535
&& chmod -R 755 /var/www/html/storage /var/www/html/bootstrap/cache

0 commit comments

Comments
 (0)