2021-07-09 22:54:08 +03:00
|
|
|
FROM alpine:3.14
|
2018-04-26 01:06:18 +03:00
|
|
|
LABEL maintainer="Dan Sosedoff <dan.sosedoff@gmail.com>"
|
2021-07-08 03:43:07 +03:00
|
|
|
ENV PGWEB_VERSION 0.11.8
|
2014-10-28 11:02:27 +03:00
|
|
|
|
2016-06-28 04:48:36 +03:00
|
|
|
RUN \
|
2018-08-21 05:04:10 +03:00
|
|
|
apk update && \
|
|
|
|
apk add --no-cache ca-certificates openssl postgresql wget && \
|
2019-01-28 21:02:30 +03:00
|
|
|
update-ca-certificates && \
|
|
|
|
rm -rf /var/cache/apk/* && \
|
2016-06-28 04:48:36 +03:00
|
|
|
cd /tmp && \
|
2018-08-21 05:04:10 +03:00
|
|
|
wget -q https://github.com/sosedoff/pgweb/releases/download/v$PGWEB_VERSION/pgweb_linux_amd64.zip && \
|
2016-06-28 04:48:36 +03:00
|
|
|
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
|
2018-04-26 01:00:05 +03:00
|
|
|
CMD ["/usr/bin/pgweb", "--bind=0.0.0.0", "--listen=8081"]
|