Artifact Content
Not logged in

Artifact 6ff0c2ef4e1f64d746afaa501b62c2f2ac7311a2:


FROM golang:alpine

RUN apk update

# -- Build the go stuff -------------------------v
RUN apk add --update git && \
    rm -rf /var/cache/apk/*
RUN go get github.com/constabulary/gb/... && \
    go install github.com/constabulary/gb
RUN apk add --update build-base

COPY src /go/src/matrix-search/src
COPY vendor /go/src/matrix-search/vendor

WORKDIR /go/src/matrix-search
RUN gb build

# -- Build the node stuff -----------------------v
RUN apk add --update nodejs nodejs-npm
# Python and make node gyp :(
RUN apk add --update python make

COPY js_fetcher /node/js_fetcher
WORKDIR /node/js_fetcher
RUN npm i

COPY config.json /node/js_fetcher/config.json

# -- Scripts ------------------------------------v
CMD /go/src/matrix-search/bin/matrix-search-local --config=config.json --data=data & node index.js --config=config.json --data=data