1
0
Fork 0
mirror of https://github.com/vbatts/imgsrv.git synced 2024-11-23 08:35:43 +00:00
imgsrv/Dockerfile
Vincent Batts 7fac419675
small container build
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2019-03-11 15:57:01 -04:00

14 lines
436 B
Docker

FROM golang as build
WORKDIR /go/src/github.com/vbatts/imgsrv
COPY . .
RUN go install -tags netgo github.com/vbatts/imgsrv
FROM busybox as prod
ENV MONGODB_DATABASE filesrv
ENV MONGODB_SERVICE_HOST 127.0.0.1
ENV MONGODB_SERVICE_PORT 27017
EXPOSE 7777
COPY --from=build /go/bin/imgsrv /usr/local/bin/imgsrv
COPY --from=build /go/src/github.com/vbatts/imgsrv/run.sh /usr/local/bin/run.sh
ENTRYPOINT ["/bin/sh", "/usr/local/bin/run.sh"]