<commit_before>FROM ubuntu:20.04

LABEL maintainer="<EMAIL>"
EXPOSE 5003

# Set locale
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV DEBIAN_FRONTEND noninteractive

# Install go and other dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
    build-essential locales                      `: basic packages` \
    git curl wget tar ca-certificates            `: go installation` \
    gcc g++ make gnupg                           `: nodejs dependencies` \
    && rm -rf /var/lib/apt/lists/*
RUN wget https://godeb.s3.amazonaws.com/godeb-amd64.tar.gz && \
    tar xvf godeb-amd64.tar.gz &&\
    ./godeb install "$(./godeb list | tail -n 1)"
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen

# Install node
RUN wget https://deb.nodesource.com/setup_12.x && bash setup_12.x && \
    apt-get install -y --no-install-recommends nodejs && \
    rm -rf /var/lib/apt/lists/*

# Set up directory structures
ENV GOPATH /root/gocode
RUN mkdir -p /root/gocode/src/github.com/albertyw/reaction-pics
COPY . /root/gocode/src/github.com/albertyw/reaction-pics
WORKDIR /root/gocode/src/github.com/albertyw/reaction-pics

# App-specific setup
RUN bin/container_setup.sh

CMD ["bin/start.sh"]
<commit_msg>Clean up after godeb install<commit_after>FROM ubuntu:20.04

LABEL maintainer="<EMAIL>"
EXPOSE 5003

# Set locale
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV DEBIAN_FRONTEND noninteractive

# Install go and other dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
    build-essential locales                      `: basic packages` \
    git curl wget tar ca-certificates            `: go installation` \
    gcc g++ make gnupg                           `: nodejs dependencies` \
    && rm -rf /var/lib/apt/lists/*
RUN wget https://godeb.s3.amazonaws.com/godeb-amd64.tar.gz && \
    tar xvf godeb-amd64.tar.gz && \
    ./godeb install "$(./godeb list | tail -n 1)" && \
    rm godeb* go_*deb
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen

# Install node
RUN wget https://deb.nodesource.com/setup_12.x && bash setup_12.x && \
    apt-get install -y --no-install-recommends nodejs && \
    rm -rf /var/lib/apt/lists/*

# Set up directory structures
ENV GOPATH /root/gocode
RUN mkdir -p /root/gocode/src/github.com/albertyw/reaction-pics
COPY . /root/gocode/src/github.com/albertyw/reaction-pics
WORKDIR /root/gocode/src/github.com/albertyw/reaction-pics

# App-specific setup
RUN bin/container_setup.sh

CMD ["bin/start.sh"]

{'fraction_non_alphanumeric': 0.13371868978805396, 'fraction_numerical': 0.018497109826589597, 'mean_word_length': 2.677053824362606, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6285374', 'n_tokens_mistral': 1014, 'n_tokens_neox': 956, 'n_words': 229}