<commit_before>FROM gliderlabs/alpine:edge

MAINTAINER blacktop, https://github.com/blacktop

RUN apk-install file
RUN apk-install -t build-deps go git mercurial build-base file-dev \
  && set -x \
  && echo "Building info Go binary..." \
  && git clone https://github.com/maliceio/malice.git /go/src/github.com/maliceio/malice \
  && cd /go/src/github.com/maliceio/malice \
  && export GOPATH=/go \
  && go version \
  && go get \
  && go build -ldflags "-X main.Version=$(cat VERSION) -X main.BuildTime=$(date -u +%Y%m%d)" -o /bin/malice \
  && echo "Copy malice config files..." \
  && cp /go/src/github.com/maliceio/malice/data/config.toml /malice/config \
  && cp /go/src/github.com/maliceio/malice/data/plugins.toml /malice/config \
  && rm -rf /go \
  && apk del --purge build-deps

ENV MALICE_STORAGE_PATH /malice

VOLUME ["/malice/config"]
VOLUME ["/malice/samples"]

EXPOSE 80 443 9200 9300

WORKDIR /malware/samples<commit_msg>update Dockerfile<commit_after>FROM gliderlabs/alpine:edge

MAINTAINER blacktop, https://github.com/blacktop

RUN apk-install file
RUN apk-install -t build-deps go git mercurial build-base file-dev \
  && set -x \
  && echo "Building info Go binary..." \
  && git clone https://github.com/maliceio/malice.git /go/src/github.com/maliceio/malice \
  && cd /go/src/github.com/maliceio/malice \
  && export GOPATH=/go \
  && go version \
  && go get \
  && go build -ldflags "-X main.Version=$(cat VERSION) -X main.BuildTime=$(date -u +%Y%m%d)" -o /bin/malice \
  && echo "Copy malice config files..." \
  && mkdir /malice \
  && cp /go/src/github.com/maliceio/malice/data/config.toml /malice \
  && cp /go/src/github.com/maliceio/malice/data/plugins.toml /malice \
  && rm -rf /go \
  && apk del --purge build-deps

ENV MALICE_STORAGE_PATH /malice

VOLUME ["/malice/config"]
VOLUME ["/malice/samples"]

EXPOSE 80 443 9200 9300

WORKDIR /malware/samples
{'fraction_non_alphanumeric': 0.16322204557498676, 'fraction_numerical': 0.01377848436671966, 'mean_word_length': 3.034188034188034, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2048773', 'n_tokens_mistral': 759, 'n_tokens_neox': 723, 'n_words': 162}