<commit_before>FROM openresty/openresty:xenial

ADD lib/resty/openidc.lua /usr/local/openresty/lualib/resty/openidc.lua

# install dependencies
RUN ["luarocks", "install", "lua-resty-session"]
RUN ["luarocks", "install", "lua-resty-http"]
RUN ["luarocks", "install", "lua-resty-jwt"]

# install test dependencies
RUN ["apt-get", "update"]
RUN ["apt-get", "install", "-y", "git"]
RUN ["luarocks", "install", "busted"]
RUN ["luarocks", "install", "LuaSocket"]
RUN ["luarocks", "install", "serpent"]

# mount tests
ADD tests/spec /spec

CMD busted -C spec -o plainTerminal .<commit_msg>move addition of openidc.lua to a later stage to improve layer reuse<commit_after>FROM openresty/openresty:xenial

# install dependencies
RUN ["luarocks", "install", "lua-resty-session"]
RUN ["luarocks", "install", "lua-resty-http"]
RUN ["luarocks", "install", "lua-resty-jwt"]

# install test dependencies
RUN ["apt-get", "update"]
RUN ["apt-get", "install", "-y", "git"]
RUN ["luarocks", "install", "busted"]
RUN ["luarocks", "install", "LuaSocket"]
RUN ["luarocks", "install", "serpent"]

ADD lib/resty/openidc.lua /usr/local/openresty/lualib/resty/openidc.lua

# mount tests
ADD tests/spec /spec

CMD busted -C spec -o plainTerminal .
{'fraction_non_alphanumeric': 0.18427518427518427, 'fraction_numerical': 0.0, 'mean_word_length': 5.605405405405405, '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': '3661412', 'n_tokens_mistral': 447, 'n_tokens_neox': 445, 'n_words': 117}