FROM amazon/aws-eb-python:3.4.2-onbuild-3.5.1

RUN apt-get update && \
    apt-get install -y memcached && \
    apt-get install -y supervisor

COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf

RUN mkdir /tmp/ows-xlsx && \
    chown -R uwsgi:uwsgi /tmp/ows-xlsx

RUN pip install newrelic
RUN chmod +x start.sh

ENTRYPOINT ./start.sh
EXPOSE 8080
