<commit_before>FROM python:3.3
MAINTAINER <NAME>
ADD /app /usr/src/app
RUN apt-get update
RUN apt-get install -y nano tar curl net-tools build-essential git nginx-full
RUN pip install --upgrade pip
EXPOSE 80
WORKDIR /usr/src/app
RUN pip install --default-timeout=200 -r requirements.txt
RUN pip install uwsgi
COPY /pki/certs/oauth_app.crt /etc/nginx/ssl/
COPY /pki/certs/oauth_app.key /etc/nginx/ssl/
COPY /config/nginx.conf /etc/nginx/sites-available/oauth_app
COPY /config/oauth_providers.cfg /usr/src/app/config.cfg
COPY /entrypoint.sh /entrypoint.sh
RUN ln -s /etc/nginx/sites-available/oauth_app /etc/nginx/sites-enabled/oauth_app
COPY /config/uwsgi.ini /etc/uwsgi.ini
EXPOSE 443
COPY /pki/certs/*.crt /usr/local/share/ca-certificates/
RUN update-ca-certificates
RUN mkdir -p /www-data
RUN chown www-data.www-data /www-data
CMD /entrypoint.sh $UWSGI_EXTRA_PARAMS
<commit_msg>oauth_app/Dockerfile: Added comments to document instructions<commit_after>FROM python:3.3
MAINTAINER <NAME>

# Add application root
ADD /app /usr/src/app

# Install package dependencies
RUN apt-get update
RUN apt-get install -y nano tar curl net-tools build-essential git nginx-full
RUN pip install --upgrade pip

# Install Python dependencies
WORKDIR /usr/src/app
RUN pip install --default-timeout=200 -r requirements.txt
RUN pip install uwsgi

# Install default certificates
COPY /pki/certs/oauth_app.crt /etc/nginx/ssl/
COPY /pki/certs/oauth_app.key /etc/nginx/ssl/

# Install default configuration
COPY /config/nginx.conf /etc/nginx/sites-available/oauth_app
COPY /config/oauth_providers.cfg /usr/src/app/config.cfg
COPY /entrypoint.sh /entrypoint.sh
RUN ln -s /etc/nginx/sites-available/oauth_app /etc/nginx/sites-enabled/oauth_app
COPY /config/uwsgi.ini /etc/uwsgi.ini
COPY /pki/certs/*.crt /usr/local/share/ca-certificates/
RUN update-ca-certificates

# Create data directory for application
RUN mkdir -p /www-data
RUN chown www-data.www-data /www-data

# Expose ports
EXPOSE 80
EXPOSE 443

# Run application
CMD /entrypoint.sh $UWSGI_EXTRA_PARAMS

{'fraction_non_alphanumeric': 0.10805500982318271, 'fraction_numerical': 0.009823182711198428, 'mean_word_length': 4.079800498753118, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 8, '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': '5962862', 'n_tokens_mistral': 781, 'n_tokens_neox': 732, 'n_words': 191}