<commit_before>FROM golang:alpine

# Install required software packages.
RUN set -ex && \
apk update && \
apk add --no-cache make git dnsmasq openssl docker

# Upload Sextant Go programs and retrieve dependencies.
RUN mkdir -p /go/bin
COPY cloud-config-server /go/bin/
COPY addons              /go/bin/
# Install Docker registry
RUN go get github.com/docker/distribution && \
cd /go/src/github.com/docker/distribution && \
make PREFIX=/go clean binaries && \
mkdir -p /etc/docker/registry && \
cp /go/src/github.com/docker/distribution/cmd/registry/config-dev.yml /etc/docker/registry/config.yml

RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
# TODO(yi): Why do we need to create /go/static?
RUN mkdir /go/static

# NOTICE: change install.sh HTTP server ip:port when running entrypoint.sh
COPY entrypoint.sh /
VOLUME ["/var/lib/registry"]
WORKDIR "/go"
ENTRYPOINT ["/entrypoint.sh"]
<commit_msg>No apk add docker in docker/Dockerfile<commit_after>FROM golang:alpine

# Install required software packages.
RUN set -ex && \
apk update && \
apk add --no-cache make git dnsmasq openssl

# Upload Sextant Go programs and retrieve dependencies.
RUN mkdir -p /go/bin
COPY cloud-config-server /go/bin/
COPY addons              /go/bin/

# Install Docker registry
RUN go get github.com/docker/distribution && \
cd /go/src/github.com/docker/distribution && \
make PREFIX=/go clean binaries && \
mkdir -p /etc/docker/registry && \
cp /go/src/github.com/docker/distribution/cmd/registry/config-dev.yml /etc/docker/registry/config.yml

RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
# TODO(yi): Why do we need to create /go/static?
RUN mkdir /go/static

# NOTICE: change install.sh HTTP server ip:port when running entrypoint.sh
COPY entrypoint.sh /
VOLUME ["/var/lib/registry"]
WORKDIR "/go"
ENTRYPOINT ["/entrypoint.sh"]

{'fraction_non_alphanumeric': 0.1303885045236828, 'fraction_numerical': 0.014901543374135177, 'mean_word_length': 3.4444444444444446, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '6154166', 'n_tokens_mistral': 700, 'n_tokens_neox': 632, 'n_words': 184}