Docker app how to update?

There is a project on laravel docker I have already deployed container deploys the script copies the repository and removes unnecessary files question how can I auto update the project or just to replace the docker file just after the script works, it deletes the source code and politi round impossible itself docker file and Yes use docker-compose
version: '3'
services:
 #PHP Service
app:
build:
 context: .
 dockerfile: Dockerfile
 image: digitalocean.com/php
 container_name: app
 restart: unless-stopped
 tty: true
environment:
 SERVICE_NAME: app
 SERVICE_TAGS: dev
 working_dir: /var/www
volumes:
 - ./:/var/www
 - ./php/local.ini:/usr/local/etc/php/conf.d/local.ini
networks:
 - app-network
 #Nginx Service
webserver:
 image: nginx:alpine
 container_name: webserver
 restart: unless-stopped
 tty: true
ports:
 - "80:80"
 - "443:443"
volumes:
 - ./:/var/www
 - ./nginx/conf.d/:/etc/nginx/conf.d/
networks:
 - app-network
 #MySQL Service
db:
 image: mysql:5.7.22
 container_name: db
 restart: unless-stopped
 tty: true
ports:
 - "3306:3306"
environment:
 MYSQL_DATABASE: doctor
 MYSQL_ROOT_PASSWORD: alita333
 SERVICE_TAGS: dev
 SERVICE_NAME: mysql
volumes:
 - dbdata:/var/lib/mysql/
 - ./mysql/my.cnf/etc/mysql/my.cnf
networks:
 - app-network
#Docker Networks
networks:
app-network:
 driver: bridge
#Volumes
volumes:
dbdata:
 driver: local


FROM php:7.3-fpm

# Copy the composer.lock and composer.json
COPY composer.lock composer.json /var/www/

# Set working directory
WORKDIR /var/www

# Install dependencies
RUN apt-get update && apt-get install -y \
 build-essential \
 libzip-dev \
 libpng-dev \
 libjpeg62-turbo-dev \
 libwebp-dev libjpeg62-turbo-dev libpng-dev libxpm-dev \
 libfreetype6 \
 libfreetype6-dev \
 locales \
 zip \
 gifsicle jpegoptim optipng pngquant \
 vim \
 unzip \
 git \
 curl \
sudo

# Clear cache
RUN apt-get clean && rm-rf /var/lib/apt/lists/*

# Install extensions
RUN docker-php-ext-install pdo_mysql zip exif mbstring pcntl

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

# Add user for laravel application
RUN groupadd -g 1000 www
RUN useradd-u 1000 -ms /bin/bash -g www www

# Copy an existing application directory contents
COPY . /var/www

# Copy an existing application directory permissions
COPY --chown=www:www . /var/www

# Change current user to www
USER www

# Expose port 9000 and start php-fpm server
EXPOSE 9000
CMD ["php-fpm"]


the project uses vue and the actual component when the deployment is deleted the source script so damaged git was not a problem would be if 1 server but several of them and ftp connect you can not only ssh
April 19th 20 at 12:35
0 answer

Find more questions by tags Docker