1
1
# uWSGI serving a django-shop application
2
- # This Dockerfile builds the base image for all merchant implementations using **djangoSHOP **:
3
- # docker build -t uwsgi-django-shop .
2
+ # This Dockerfile builds the base image for all merchant implementations using **django-SHOP **:
3
+ # docker build -t awesto/ uwsgi-django-shop .
4
4
5
5
FROM awesto/fedora-uwsgi-python:latest
6
6
7
7
MAINTAINER Jacob Rief <
[email protected] >
8
8
9
- # RUN alternatives --install /usr/bin/python python /usr/bin/python3.4 2
10
- # RUN alternatives --install /usr/bin/python python /usr/bin/python2.7 1
9
+ RUN alternatives --install /usr/bin/python python /usr/bin/python3.5 2
10
+ RUN alternatives --install /usr/bin/python python /usr/bin/python2.7 1
11
11
RUN pip install --upgrade pip
12
12
13
13
COPY docker-files/uwsgi.ini /etc/uwsgi.ini
@@ -22,8 +22,8 @@ RUN chown redis.redis /etc/uwsgi.d/redis.ini
22
22
23
23
RUN pip install uwsgi
24
24
ADD requirements /tmp/requirements
25
- RUN pip install django==1.9.10
26
- RUN pip install -r /tmp/requirements/py2 .txt
25
+ RUN pip install django==1.9.12
26
+ RUN pip install -r /tmp/requirements/common .txt
27
27
28
28
RUN mkdir -p /web/{logs,workdir,elasticsearch,redis,django-shop}
29
29
COPY LICENSE.txt /web/django-shop
@@ -39,7 +39,3 @@ RUN useradd -M -d /web -s /bin/bash django
39
39
RUN chown -R django.django /web/{logs,workdir}
40
40
RUN chown -R elasticsearch.elasticsearch /web/elasticsearch
41
41
RUN chown -R redis.redis /web/redis
42
-
43
- # install packages outside of PyPI
44
- WORKDIR /web/django-shop
45
- RUN npm install
0 commit comments