Skip to content

Commit 9566889

Browse files
committed
upgrade to Fedora 24
1 parent 0412552 commit 9566889

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Dockerfile

+6-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# 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 .
44

55
FROM awesto/fedora-uwsgi-python:latest
66

77
MAINTAINER Jacob Rief <[email protected]>
88

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
1111
RUN pip install --upgrade pip
1212

1313
COPY docker-files/uwsgi.ini /etc/uwsgi.ini
@@ -22,8 +22,8 @@ RUN chown redis.redis /etc/uwsgi.d/redis.ini
2222

2323
RUN pip install uwsgi
2424
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
2727

2828
RUN mkdir -p /web/{logs,workdir,elasticsearch,redis,django-shop}
2929
COPY LICENSE.txt /web/django-shop
@@ -39,7 +39,3 @@ RUN useradd -M -d /web -s /bin/bash django
3939
RUN chown -R django.django /web/{logs,workdir}
4040
RUN chown -R elasticsearch.elasticsearch /web/elasticsearch
4141
RUN chown -R redis.redis /web/redis
42-
43-
# install packages outside of PyPI
44-
WORKDIR /web/django-shop
45-
RUN npm install

example/Dockerfile

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ FROM awesto/uwsgi-django-shop:latest
22

33
MAINTAINER Jacob Rief <[email protected]>
44

5+
# install packages outside of PyPI
6+
WORKDIR /web/django-shop
7+
RUN npm install
8+
59
# copy the example project
610
RUN mkdir -p /web/django-shop/example
711
ADD myshop /web/django-shop/example/myshop

0 commit comments

Comments
 (0)