Dockerfile: updates

This commit is contained in:
Vincent Batts 2017-03-10 12:56:41 -05:00
parent 2878bb123b
commit 69de1a14b0
1 changed files with 5 additions and 5 deletions

View File

@ -1,8 +1,8 @@
FROM fedora
RUN dnf install -y golang
RUN mkdir -p /usr/local/src/github.com/vbatts/
ENV GOPATH=/usr/local
ADD ./ /usr/local/src/github.com/vbatts/imgsrv/
RUN go install github.com/vbatts/imgsrv
ENV GOPATH /usr/local
EXPOSE 7777
RUN dnf install -y golang git && \
go get github.com/vbatts/imgsrv && \
rm -rf /usr/local/src /usr/local/pkg && \
dnf remove -y golang git
ENTRYPOINT ["/usr/local/bin/imgsrv"]