<commit_before>FROM lphoward/fake-s3:latest

CMD ["-r",  "/fakes3_root", "-p",  "80"]
EXPOSE 80<commit_msg>Update fakes3 Dockerfile<commit_after>FROM alpine:latest

RUN apk --update add \
    git \
    ruby \
    ruby-dev \
    ruby-rdoc \
    ruby-irb \
    ruby-json \
    ruby-rake

RUN git clone https://github.com/jubos/fake-s3.git app
# Checkout the version with the cors options
RUN cd app git checkout 994f7ff8875a4fbab51530995b8ad6b82d622f39
RUN cd app && gem build fakes3.gemspec
RUN gem install app/fakes3-1.2.1.gem


RUN mkdir -p /fakes3_root
ENTRYPOINT ["/usr/bin/fakes3"]
# Add CORS preflight headers
CMD ["-r",  "/fakes3_root", "-p",  "4567", "--corspreflightallowheaders", "Accept, Content-Type, Authorization, Content-Length, ETag, X-CSRF-Token, Content-Disposition, Content-MD5"]

EXPOSE 4567
{'fraction_non_alphanumeric': 0.12839506172839507, 'fraction_numerical': 0.06296296296296296, 'mean_word_length': 3.6878612716763004, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '339530', 'n_tokens_mistral': 342, 'n_tokens_neox': 309, 'n_words': 77}