From a585ae6bca66db93ec047a33dfa01bd8695aacfd Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Mon, 11 Sep 2023 12:03:10 -0700 Subject: [PATCH] Remove unnecessary files from image (#481) --- Dockerfile | 2 -- dependencies | 9 +++++---- 2 files changed, 5 insertions(+), 6 deletions(-) mode change 100644 => 100755 dependencies diff --git a/Dockerfile b/Dockerfile index 44eb9c4a..9d5a0e16 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,10 +18,8 @@ EXPOSE 11625 EXPOSE 11626 ADD dependencies / -RUN ["chmod", "+x", "dependencies"] RUN /dependencies -RUN apt-get -y install libunwind8 postgresql curl sqlite libc++abi1-12 libc++1-12 COPY --from=stellar-core /usr/local/bin/stellar-core /usr/bin/stellar-core COPY --from=horizon /go/bin/horizon /usr/bin/stellar-horizon diff --git a/dependencies b/dependencies old mode 100644 new mode 100755 index 0a6a4633..70881509 --- a/dependencies +++ b/dependencies @@ -4,12 +4,13 @@ set -e # dependencies export DEBIAN_FRONTEND=noninteractive apt-get update -apt-get install -y curl wget git apt-transport-https \ - libpq-dev libsqlite3-dev libsasl2-dev \ +apt-get install -y curl apt-transport-https \ postgresql-client postgresql postgresql-contrib \ - sudo vim zlib1g-dev supervisor psmisc \ - nginx rsync jq netcat # Parsing stellar-core JSON for standalone network and checking core HTTP server + sudo supervisor psmisc \ + nginx rsync jq netcat \ + libunwind8 sqlite libc++abi1-12 libc++1-12 apt-get clean +rm -rf /var/lib/apt/lists/* chown -R www-data:www-data /var/lib/nginx