2016-06-28 04:48:36 +03:00
|
|
|
FROM alpine:3.3
|
|
|
|
MAINTAINER Dan Sosedoff <dan.sosedoff@gmail.com>
|
2014-10-28 11:02:27 +03:00
|
|
|
|
2016-07-29 18:43:23 +03:00
|
|
|
ENV PGWEB_VERSION 0.9.4
|
2014-10-28 11:02:27 +03:00
|
|
|
|
2016-06-28 04:48:36 +03:00
|
|
|
RUN \
|
|
|
|
apk update && \
|
|
|
|
apk add ca-certificates && \
|
|
|
|
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
|
2014-10-28 11:02:27 +03:00
|
|
|
|
2015-07-15 06:26:32 +03:00
|
|
|
EXPOSE 8081
|
2016-06-28 04:48:36 +03:00
|
|
|
CMD ["/usr/bin/pgweb", "--bind=0.0.0.0", "--listen=8081"]
|