Skip to content
Permalink
Browse files

Merge pull request #14 from Krocodial/release-2

Release 2
  • Loading branch information
Krocodial committed Jun 3, 2019
2 parents 8eefbeb + 9f20ad1 commit 0e6ace3b0a30e6a449126ae43a81ec7250d77882
Showing 1,196 changed files with 5,300 additions and 66,079 deletions.
@@ -0,0 +1,13 @@
*envs*
*tmp/*
*.pyc
*__pycache__*
*.env*
*bak*
mydatabase
*.cpython-36.pyc
db.sqlite*
*.csv
*.swp
sso*
geckodriver*
@@ -10,3 +10,5 @@ db.sqlite*
*.csv
*.swp
sso*
geckodriver*
files/*
@@ -0,0 +1,38 @@
FROM python:3

COPY . /opt/app-root/
WORKDIR /opt/app-root

RUN pip install --no-cache-dir -r requirements.txt
# apt-get update && apt-get -y install cron

#useradd --gid 0 --create-home --shell /bin/bash classy && \

#COPY crontab/classy /etc/cron.d/
#COPY . /home/classy
RUN chown -R 1001:0 /opt/app-root
#chmod 0644 /etc/cron.d/classy && \
#crontab /etc/cron.d/classy && \
#touch /var/log/cron.log && \
#chmod 544 /var/log/cron.log && \
#touch /etc/crontab /etc/cron.*/*

#RUN update-rc.d cron defaults
#USER classy

#RUN python manage.py collectstatic --noinput
#RUN chmod -R +r conf


#COPY crontab/entrypoint /entrypoint
#RUN chmod +x /entrypoint
#ENTRYPOINT ["/entrypoint"]

USER 1001

CMD python manage.py migrate && python manage.py createcachetable && python manage.py check && gunicorn --bind 0.0.0.0:8080 --access-logfile - --error-logfile - --reload wsgi

#docker build --no-cache -t classy .
#docker run -p 0.0.0.0:8080:8080 --env-file .env classy


0 comments on commit 0e6ace3

Please sign in to comment.
You can’t perform that action at this time.