diff --git a/docker/Dockerfile b/docker/Dockerfile index 31022ae08..330c70c32 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -10,17 +10,17 @@ ARG SUPERSONIC_VERSION RUN apt-get update # Install necessary packages, including Postgres client -RUN apt-get install -y postgresql-client +RUN apt-get update && apt-get install -y postgresql-client # Install the vim editor. -RUN apt-get install -y vim && \ +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 install -y iputils-ping +RUN apt-get update && apt-get install -y iputils-ping # 更新包列表并安装 dnsutils 包 -RUN apt-get install -y 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-run.sh b/docker/docker-compose-run.sh new file mode 100644 index 000000000..7a515ba56 --- /dev/null +++ b/docker/docker-compose-run.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +SUPERSONIC_VERSION=0.9.10-SNAPSHOT docker-compose -f docker-compose.yml -p supersonic up \ No newline at end of file