1
0
Fork 0
mirror of https://github.com/vbatts/imgsrv.git synced 2024-11-27 02:25:41 +00:00
imgsrv/Dockerfile

15 lines
436 B
Text
Raw Permalink Normal View History

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