<commit_before>FROM golang:1.17.2 AS build-stage
ENV DEBIAN_FRONTEND noninteractive

RUN mkdir -pv $GOPATH/github.com/aleasoluciones/http2amqp
WORKDIR $GOPATH/github.com/aleasoluciones/http2amqp
COPY . $GOPATH/github.com/aleasoluciones/http2amqp

# CGO_ENABLED needed for scratch image that serves the binary
# Ref: https://stackoverflow.com/questions/61515186/when-using-cgo-enabled-is-must-and-what-happens
ENV CGO_ENABLED 0
RUN make jenkins
RUN cp http2amqp /

FROM scratch

COPY --from=build-stage http2amqp /

EXPOSE 18080
ENTRYPOINT ["/http2amqp", "-verbose"]
<commit_msg>[FIX] Docker multistage names<commit_after>FROM golang:1.17.2 AS http2amqp-builder
ENV DEBIAN_FRONTEND noninteractive

RUN mkdir -pv $GOPATH/github.com/aleasoluciones/http2amqp
WORKDIR $GOPATH/github.com/aleasoluciones/http2amqp
COPY . $GOPATH/github.com/aleasoluciones/http2amqp

# CGO_ENABLED needed for scratch image that serves the binary
# Ref: https://stackoverflow.com/questions/61515186/when-using-cgo-enabled-is-must-and-what-happens
ENV CGO_ENABLED 0
RUN make jenkins
RUN cp http2amqp /

FROM scratch AS http2amqp-compiled

COPY --from=build-stage http2amqp /

EXPOSE 18080
ENTRYPOINT ["/http2amqp", "-verbose"]

{'fraction_non_alphanumeric': 0.0975, 'fraction_numerical': 0.041666666666666664, 'mean_word_length': 5.22279792746114, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '588387', 'n_tokens_mistral': 476, 'n_tokens_neox': 450, 'n_words': 95}