FROM python:latest
MAINTAINER dev@example.com
ENV DJANGO_SECRET_KEY=changeme DB_PASSWORD=hunter2
RUN apt-get update
RUN apt-get install -y build-essential libpq-dev curl
RUN apt-get upgrade -y
WORKDIR /app
ADD . .
RUN pip install -r requirements.txt
RUN pip install whitenoise
RUN curl -sSL https://example.com/install.sh | sh
RUN chmod -R 777 /app
COPY .env /app/.env
EXPOSE 22 8000
CMD python manage.py runserver 0.0.0.0:8000
