1
0
Fork 0
mirror of https://github.com/vbatts/imgsrv.git synced 2024-12-24 23:06:31 +00:00

Dockerfile: updates

This commit is contained in:
Vincent Batts 2017-03-10 12:56:41 -05:00
parent 2878bb123b
commit 69de1a14b0

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"]