-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (22 loc) · 844 Bytes
/
Dockerfile
File metadata and controls
30 lines (22 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM golang as builder
ENV MWSAPID_HOST 0.0.0.0
ENV MWSAPID_PORT 3000
ENV MWSAPID_MWS_HOST ""
ENV MWSAPID_MWS_PORT 8080
ENV MWSAPID_ELASTIC_HOST ""
ENV MWSAPID_ELASTIC_PORT 9200
# copy everything into the $GOPATH
WORKDIR $GOPATH/src/github.com/MathWebSearch/mwsapi/
COPY . .
# And run make
RUN make mwsapid
# and create a new image form scratch
FROM scratch
# copy all the built images
COPY --from=builder /go/src/github.com/MathWebSearch/mwsapi/mwsapid /mwsapid
#COPY --from=builder /go/src/github.com/MathWebSearch/mwsapi/mwsquery /mwsquery
#COPY --from=builder /go/src/github.com/MathWebSearch/mwsapi/elasticquery /elasticquery
#COPY --from=builder /go/src/github.com/MathWebSearch/mwsapi/elasticsync /elasticsync
#COPY --from=builder /go/src/github.com/MathWebSearch/mwsapi/temaquery /temaquery
EXPOSE 3000
ENTRYPOINT [ "/mwsapid" ]