diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..e720e02d --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +docker-vol diff --git a/Dockerfile b/Dockerfile index 92106309..632cc91d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,17 +11,20 @@ RUN mkdir -p /opt/localshop/var && \ chown -R localshop:localshop /opt/localshop/ RUN easy_install -U pip +WORKDIR /opt/localshop -ENV DJANGO_STATIC_ROOT /opt/localshop/static -# Install localshop -RUN pip install https://github.com/jazzband/localshop/archive/develop.zip#egg=localshop +ENV DJANGO_STATIC_ROOT /opt/localshop/static # Install uWSGI / Honcho run pip install psycopg2==2.6.0 run pip install uwsgi==2.0.10 run pip install honcho==0.6.6 +# Install localshop +COPY ./ /opt/localshop/src/localshop +RUN cd /opt/localshop/src/localshop && \ + pip install . # Switch to user USER localshop