Dockerfile 455 B

12345678910111213141516
  1. FROM python:3
  2. WORKDIR /app
  3. COPY requirements.txt .
  4. RUN python -mpip install -r requirements.txt
  5. ENV DOCKERIZE_VERSION v0.6.1
  6. RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
  7. && tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
  8. && rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
  9. COPY . .
  10. CMD ./manage.py runserver 0.0.0.0:8000