Created
December 9, 2014 19:56
-
-
Save sandhose/0c15a529f3ead63f92a4 to your computer and use it in GitHub Desktop.
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 dockerfile/nodejs | |
WORKDIR /home/zeste-de-savoir | |
# Set locale | |
RUN locale-gen fr_FR.UTF-8 | |
ENV LANG fr_FR.UTF-8 | |
ENV LANGUAGE fr_FR:fr | |
ENV LC_ALL fr_FR.UTF-8 | |
# Install APT packages | |
RUN apt-get update -y | |
RUN apt-get install -y libxml2-dev | |
RUN apt-get install -y python-lxml | |
RUN apt-get install -y libxslt1-dev | |
RUN apt-get install -y libz-dev | |
RUN apt-get install -y python-sqlparse | |
RUN apt-get install -y libjpeg8-dev | |
RUN apt-get install -y libfreetype6 | |
RUN apt-get install -y libfreetype6-dev | |
ADD package.json /home/zeste-de-savoir/package.json | |
RUN npm install | |
ADD .bowerrc /home/zeste-de-savoir/.bowerrc | |
ADD bower.json /home/zeste-de-savoir/bower.json | |
RUN npm run bower -- install --config.interractive=false --allow-root | |
# Python things | |
ADD requirements.txt /home/zeste-de-savoir/requirements.txt | |
RUN pip install --upgrade -r requirements.txt | |
ADD . /home/zeste-de-savoir | |
RUN python manage.py syncdb --noinput | |
RUN python manage.py migrate --noinput | |
RUN npm run gulp -- build | |
EXPOSE 8000 | |
CMD ["/usr/bin/python", "manage.py", "runserver", "0.0.0.0:8000"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment