diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..55e5197 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,10 @@ +.git +.env +node_modules +vendor +storage/logs +storage/framework/cache +docker +tests +*.md +.github diff --git a/docker-compose.yml b/docker-compose.yml index 2614efa..8bcb3b8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -86,7 +86,7 @@ services: volumes: - mysql_data:/var/lib/mysql healthcheck: - test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "${DB_USERNAME}", "-p${DB_PASSWORD}"] + test: ["CMD", "mysqladmin", "ping", "-h", "localhost"] interval: 10s timeout: 5s retries: 10 diff --git a/docker/app/Dockerfile b/docker/app/Dockerfile index b5b8f11..ff1c6a3 100644 --- a/docker/app/Dockerfile +++ b/docker/app/Dockerfile @@ -9,7 +9,8 @@ RUN apt-get update && apt-get install -y \ COPY --from=composer:2 /usr/bin/composer /usr/bin/composer RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \ - && apt-get install -y nodejs + && apt-get install -y nodejs \ + && apt-get clean && rm -rf /var/lib/apt/lists/* WORKDIR /var/www/html COPY . .