Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (13 sloc) 465 Bytes
FROM python:3.5
ENV PYTHONUNBUFFERED 1
COPY ./requirements.txt /requirements.txt
RUN pip3 install -r /requirements.txt psycopg2 raven==5.23.0
RUN groupadd -r django && useradd -r -g django django
COPY . /app
RUN chown -R django /app
WORKDIR /app
RUN make install
USER django
RUN make build_sandbox
RUN cp --remove-destination /app/src/oscar/static/oscar/img/image_not_found.jpg /app/sites/sandbox/public/media/
CMD uwsgi --ini /app/sites/sandbox/uwsgi.ini