Skip to content

Instantly share code, notes, and snippets.

@kriwil
Created September 29, 2014 14:57
Show Gist options
  • Save kriwil/12c56d7ff6e488d4a9ee to your computer and use it in GitHub Desktop.
Save kriwil/12c56d7ff6e488d4a9ee to your computer and use it in GitHub Desktop.
FROM kriwil/docker-pywebapp
MAINTAINER aldi <[email protected]>
RUN apt-get update
# posgis
RUN apt-get install -y binutils
RUN apt-get install -y libproj-dev
RUN apt-get install -y gdal-bin
# memcached
# RUN apt-get install -y libmemcached-dev
RUN pip install gunicorn==18.0
RUN pip install newrelic
# from requirements.txt
RUN pip install Django==1.5.7
RUN pip install Markdown==2.2.1
RUN pip install Pillow==2.4.0
RUN pip install PyYAML==3.10
RUN pip install South==0.7.6
RUN pip install boto==2.28.0
RUN pip install django-compressor==1.2
RUN pip install django-debug-toolbar==0.9.4
RUN pip install django-filter==0.5.4
RUN pip install django-grappelli==2.4.3
RUN pip install django-model-utils==1.1.0
RUN pip install django-mptt==0.6.0
# RUN pip install django-pylibmc==0.5.0
RUN pip install django-s3-folder-storage==0.2
RUN pip install django-storages==1.1.8
RUN pip install djangorestframework==2.3.13
RUN pip install easy-thumbnails==1.1
RUN pip install psycopg2==2.4.6
# RUN pip install pylibmc==1.3.0
RUN pip install python-dateutil==2.1
RUN pip install pytz==2012j
ADD . /littlemed
ADD ./production/settings.py /littlemed/littlemed/local_settings.py
ADD ./dev_start.sh /littlemed/littlemed/dev_start.sh
ADD ./newrelic_start.sh /littlemed/littlemed/newrelic_start.sh
ADD ./migrate.sh /littlemed/littlemed/migrate.sh
ADD ./scripts/cron-daily-updateindex.sh /etc/cron.daily/littlemed_updateindex.sh
# RUN pip install -r /littlemed/littlemed/requirements.txt
EXPOSE 8000
WORKDIR /littlemed/littlemed
RUN newrelic-admin generate-config blabla newrelic.ini
ENV NEW_RELIC_CONFIG_FILE newrelic.ini
CMD ["sh", "./newrelic_start.sh"]
# CMD ["sh", "./dev_start.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment