From ea7238304df6c3d2be6ce9dbefece8aae0f7f6b3 Mon Sep 17 00:00:00 2001 From: jerryjzhang Date: Sat, 1 Mar 2025 22:13:20 +0800 Subject: [PATCH] (fix)(docker)Fix Dockerfile by removing apt-get install. (fix)(docker)Fix Dockerfile. (fix)(docker)Fix Dockerfile. --- docker/Dockerfile | 13 ------------- docker/docker-compose.yml | 2 +- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 72caa801f..c2681a60a 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -7,19 +7,6 @@ WORKDIR /usr/src/app # Argument to pass in the supersonic version at build time ARG SUPERSONIC_VERSION -# Install necessary packages, including Postgres client -RUN apt-get update && apt-get install -y postgresql-client - -# Install the vim editor. -RUN apt-get update && apt-get install -y vim && \ - rm -rf /var/lib/apt/lists/* - -# Update the package list and install iputils-ping. -RUN apt-get update && apt-get install -y iputils-ping - -# 更新包列表并安装 dnsutils 包 -RUN apt-get update && apt-get install -y dnsutils - # Copy the supersonic standalone zip file into the container COPY assembly/build/supersonic-standalone-${SUPERSONIC_VERSION}.zip . diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 6b9ea2da0..8f7d67267 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -21,7 +21,7 @@ services: - 8.8.4.4 healthcheck: test: ["CMD-SHELL", "sh -c 'pg_isready -U supersonic_user -d postgres'"] - interval: 30s + interval: 10s timeout: 10s retries: 5