diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..b8da8b58 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +data +media +collected_static diff --git a/Dockerfile b/Dockerfile index cd7ac6ad..6972a219 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,11 @@ FROM python:2.7.13 ENV PYTHONUNBUFFERED 1 ENV LANG ru_RU.UTF-8 -RUN curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - +RUN mkdir /code +WORKDIR /code +ADD . /code/ + +RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - RUN apt-get update \ \ && DEBIAN_FRONTEND=noninteractive apt-get install -y \ @@ -31,9 +35,6 @@ RUN sed -i -e 's/# ru_RU.UTF-8 UTF-8/ru_RU.UTF-8 UTF-8/' /etc/locale.gen && \ echo 'LANG="ru_RU.UTF-8"'>/etc/default/locale && \ dpkg-reconfigure --frontend=noninteractive locales && \ update-locale LANG=ru_RU.UTF-8 -RUN mkdir /code -WORKDIR /code -ADD requirements.txt /code/ + RUN pip install -r requirements.txt -ADD . /code/ # docker rmi $(docker images -q -f dangling=true)