<commit_before>FROM golang:1.8.0

ENV USER root
RUN curl -sSL https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh > /wait-for-it.sh && \
    chmod +x /wait-for-it.sh

RUN go get github.com/golang/mock/mockgen && \
    go get golang.org/x/tools/cmd/goyacc && \
    curl https://glide.sh/get | sh
WORKDIR /go/src/github.com/yuuki/diamondb
ADD ./ /go/src/github.com/yuuki/diamondb
RUN make build
ENTRYPOINT ["/wait-for-it.sh", "dynamodb:8000", "--timeout=10", "--strict", "--", "/go/src/github.com/yuuki/diamondb/diamondb-server"]<commit_msg>Don't use wait-for-it.sh on production environment because it is for docker compose<commit_after>FROM golang:1.8.0

ENV USER root
RUN curl -sSL https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh > /wait-for-it.sh && \
    chmod +x /wait-for-it.sh

RUN go get github.com/golang/mock/mockgen && \
    go get golang.org/x/tools/cmd/goyacc && \
    curl https://glide.sh/get | sh
WORKDIR /go/src/github.com/yuuki/diamondb
ADD ./ /go/src/github.com/yuuki/diamondb
RUN make build
ENTRYPOINT ["/go/src/github.com/yuuki/diamondb/diamondb-server"]
{'fraction_non_alphanumeric': 0.17079646017699116, 'fraction_numerical': 0.010619469026548672, 'mean_word_length': 3.316793893129771, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7262523', 'n_tokens_mistral': 475, 'n_tokens_neox': 438, 'n_words': 78}