315bf650d4
* 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.
17 lines
506 B
Docker
17 lines
506 B
Docker
FROM alpine:3.6
|
|
MAINTAINER Dan Sosedoff <dan.sosedoff@gmail.com>
|
|
|
|
ENV PGWEB_VERSION 0.9.12
|
|
|
|
RUN \
|
|
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 && \
|
|
unzip pgweb_linux_amd64.zip -d /usr/bin && \
|
|
mv /usr/bin/pgweb_linux_amd64 /usr/bin/pgweb && \
|
|
rm -f pgweb_linux_amd64.zip
|
|
|
|
EXPOSE 8081
|
|
CMD ["/usr/bin/pgweb", "--bind=0.0.0.0", "--listen=8081"]
|