<commit_before>FROM dockerfile/nodejs

MAINTAINER n4sjamk

RUN ["useradd", "-m", "teamboard"]

ADD . /home/teamboard/teamboard-api

RUN cd /home/teamboard/teamboard-api && \
	npm install && \
	chown -R teamboard:teamboard .

RUN ["sudo", "-u", "teamboard", "mkdir", "/home/teamboard/logs"]

CMD /usr/bin/sudo -u teamboard -E \
	/usr/local/bin/node /home/teamboard/teamboard-api/index.js \
	2>> /home/teamboard/logs/teamboard-api.err \
	1>> /home/teamboard/logs/teamboard-api.log<commit_msg>Change teamboard uid in docker container<commit_after>FROM dockerfile/nodejs

MAINTAINER n4sjamk

RUN ["useradd", "-m", "teamboard", "-u", "23456"]

ADD . /home/teamboard/teamboard-api

RUN cd /home/teamboard/teamboard-api && \
	npm install && \
	chown -R teamboard:teamboard .

RUN ["sudo", "-u", "teamboard", "mkdir", "/home/teamboard/logs"]

USER teamboard
CMD /usr/local/bin/node /home/teamboard/teamboard-api/index.js \
	2>> /home/teamboard/logs/teamboard-api.err \
	1>> /home/teamboard/logs/teamboard-api.log
{'fraction_non_alphanumeric': 0.17430278884462153, 'fraction_numerical': 0.010956175298804782, 'mean_word_length': 3.902439024390244, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '7163007', 'n_tokens_mistral': 429, 'n_tokens_neox': 411, 'n_words': 74}