<commit_before>FROM resin/rpi-raspbian:jessie-20170111 as build

# Install Go
ENV GOVERSION 1.7.3
ENV GOTAR go$GOVERSION.linux-armv6l.tar.gz
ENV GOPATH /go
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
RUN apt-get update && \
    apt-get install -y --no-install-recommends wget && \
    wget https://storage.googleapis.com/golang/$GOTAR && \
    tar -C /usr/local -xzf $GOTAR && \
    rm -f $GOTAR && \
    # export PATH=$PATH:/usr/local/go/bin && \
    # export GOPATH=$PWD && \
    # go get -v github.com/rs/cors && \
    # go get -v github.com/stianeikeland/go-rpio && \
    # go get -v github.com/kidoman/embd && \
    apt-get remove -y --purge wget $(apt-mark showauto) && rm -rf /var/lib/apt/lists/*

# Build application
RUN mkdir -p $GOPATH/src/app
WORKDIR $GOPATH/src/app
COPY . $GOPATH/src/app
RUN go build -v led.go && \
    mv led /usr/local/bin && \
    chmod +x /usr/local/bin/led && \
    rm -rf /usr/local/go

FROM resin/rpi-raspbian:jessie-20170111
COPY --from=build /usr/local/bin/led .
EXPOSE 8080
CMD ["./led"]<commit_msg>Dockerfile: switched to entroypoint<commit_after>FROM resin/rpi-raspbian:jessie-20170111 as build

# Install Go
ENV GOVERSION 1.7.3
ENV GOTAR go$GOVERSION.linux-armv6l.tar.gz
ENV GOPATH /go
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
RUN apt-get update && \
    apt-get install -y --no-install-recommends wget && \
    wget https://storage.googleapis.com/golang/$GOTAR && \
    tar -C /usr/local -xzf $GOTAR && \
    rm -f $GOTAR && \
    # export PATH=$PATH:/usr/local/go/bin && \
    # export GOPATH=$PWD && \
    # go get -v github.com/rs/cors && \
    # go get -v github.com/stianeikeland/go-rpio && \
    # go get -v github.com/kidoman/embd && \
    apt-get remove -y --purge wget $(apt-mark showauto) && rm -rf /var/lib/apt/lists/*

# Build application
RUN mkdir -p $GOPATH/src/app
WORKDIR $GOPATH/src/app
COPY . $GOPATH/src/app
RUN go build -v led.go && \
    mv led /usr/local/bin && \
    chmod +x /usr/local/bin/led && \
    rm -rf /usr/local/go

FROM resin/rpi-raspbian:jessie-20170111
COPY --from=build /usr/local/bin/led .
EXPOSE 8080
ENTRYPOINT ["./led"]
{'fraction_non_alphanumeric': 0.16548127074442864, 'fraction_numerical': 0.02275960170697013, 'mean_word_length': 2.5884353741496597, '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': '1935935', 'n_tokens_mistral': 913, 'n_tokens_neox': 850, 'n_words': 192}