docker config

stage8
Slava 9 years ago
parent e4338cc035
commit ac43147966
  1. 3
      .dockerignore
  2. 11
      Dockerfile

@ -0,0 +1,3 @@
data
media
collected_static

@ -3,7 +3,11 @@ FROM python:2.7.13
ENV PYTHONUNBUFFERED 1 ENV PYTHONUNBUFFERED 1
ENV LANG ru_RU.UTF-8 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 \ RUN apt-get update \
\ \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \ && 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 && \ echo 'LANG="ru_RU.UTF-8"'>/etc/default/locale && \
dpkg-reconfigure --frontend=noninteractive locales && \ dpkg-reconfigure --frontend=noninteractive locales && \
update-locale LANG=ru_RU.UTF-8 update-locale LANG=ru_RU.UTF-8
RUN mkdir /code
WORKDIR /code
ADD requirements.txt /code/
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
ADD . /code/
# docker rmi $(docker images -q -f dangling=true) # docker rmi $(docker images -q -f dangling=true)

Loading…
Cancel
Save