From 315bf650d4d030430b724dc02ed7a852223c4343 Mon Sep 17 00:00:00 2001 From: Jesper Eneberg Date: Thu, 26 Apr 2018 00:00:05 +0200 Subject: [PATCH] Update Dockerfile * Removed `apk update`. * Added `--no-cache` parameter. As of Alpine Linux 3.3 we can utilize the `--no-cache` option for apk. It allows us to install packages with an index that is updated and used on-the-fly and not cached locally. No need to run `apk update`, `apk add --update` and remove `/var/cache/apk/*` when done installing packages. * Added postgres package so we can utilize pg_dump to dump tables and databases. --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index b0c4c32..1110a05 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,8 +4,7 @@ MAINTAINER Dan Sosedoff ENV PGWEB_VERSION 0.9.12 RUN \ - apk update && \ - apk add --update ca-certificates openssl && \ + apk add --no-cache ca-certificates openssl postgresql && \ update-ca-certificates && \ cd /tmp && \ wget https://github.com/sosedoff/pgweb/releases/download/v$PGWEB_VERSION/pgweb_linux_amd64.zip && \ @@ -14,4 +13,4 @@ RUN \ rm -f pgweb_linux_amd64.zip EXPOSE 8081 -CMD ["/usr/bin/pgweb", "--bind=0.0.0.0", "--listen=8081"] \ No newline at end of file +CMD ["/usr/bin/pgweb", "--bind=0.0.0.0", "--listen=8081"]