mirror of
https://github.com/sosedoff/pgweb.git
synced 2024-12-14 19:21:46 +03:00
Switch to alpine docker image, related to #164
This commit is contained in:
parent
80f2641bae
commit
76622dc32e
21
Dockerfile
21
Dockerfile
@ -1,12 +1,17 @@
|
|||||||
FROM golang:1.5
|
FROM alpine:3.3
|
||||||
|
MAINTAINER Dan Sosedoff <dan.sosedoff@gmail.com>
|
||||||
|
|
||||||
COPY . /go/src/github.com/sosedoff/pgweb
|
ENV PGWEB_VERSION 0.9.2
|
||||||
WORKDIR /go/src/github.com/sosedoff/pgweb
|
|
||||||
|
|
||||||
RUN go get github.com/tools/godep
|
RUN \
|
||||||
|
apk update && \
|
||||||
RUN godep restore
|
apk add ca-certificates && \
|
||||||
RUN godep go build && godep go install
|
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
|
EXPOSE 8081
|
||||||
CMD ["pgweb", "--bind", "0.0.0.0"]
|
CMD ["/usr/bin/pgweb", "--bind=0.0.0.0", "--listen=8081"]
|
Loading…
Reference in New Issue
Block a user