1
0
Fork 0
mirror of https://github.com/vbatts/imgsrv.git synced 2024-12-25 23:36:30 +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 FROM fedora
RUN dnf install -y golang ENV GOPATH /usr/local
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
EXPOSE 7777 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"] ENTRYPOINT ["/usr/local/bin/imgsrv"]