pgweb/Dockerfile

18 lines
571 B
Docker
Raw Normal View History

2019-07-31 15:32:51 +02:00
FROM alpine:3.10
LABEL maintainer="Dan Sosedoff <dan.sosedoff@gmail.com>"
2020-02-19 20:30:36 -06:00
ENV PGWEB_VERSION 0.11.6
2014-10-28 19:02:27 +11:00
RUN \
2018-08-20 21:04:10 -05:00
apk update && \
apk add --no-cache ca-certificates openssl postgresql wget && \
update-ca-certificates && \
rm -rf /var/cache/apk/* && \
cd /tmp && \
2018-08-20 21:04:10 -05:00
wget -q 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 19:02:27 +11:00
2015-07-14 22:26:32 -05:00
EXPOSE 8081
CMD ["/usr/bin/pgweb", "--bind=0.0.0.0", "--listen=8081"]