Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
neonion/Dockerfile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
30 lines (22 sloc)
794 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:14.04 | |
RUN apt-get -y update | |
RUN apt-get -y upgrade | |
RUN apt-get -y install python2.7 python2.7-dev python-pip | |
RUN apt-get -y install ruby | |
RUN gem install sass | |
# RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
ENV BASEDIR /src | |
ENV CODEDIR $BASEDIR/code | |
ENV STATICFILES $CODEDIR/neonion/static/ | |
COPY . $CODEDIR | |
# bugfix for hardcoded urls | |
COPY settings/docker.py $CODEDIR/settings/development.py | |
# install requirements | |
RUN /usr/bin/pip install -r ${CODEDIR}/requirements.txt | |
# build css | |
RUN /usr/local/bin/sass $STATICFILES/stylesheets/main.scss $STATICFILES/css/main.css | |
# init djang | |
WORKDIR $CODEDIR | |
RUN /usr/bin/python manage.py syncdb --noinput | |
RUN /usr/bin/python manage.py loaddata fixtures/*.json | |
RUN /usr/bin/python manage.py collectstatic --noinput |