You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
541 B

  1. FROM python:3.6
  2. # set work directory
  3. WORKDIR /app
  4. # set environment variables
  5. ENV PYTHONDONTWRITEBYTECODE 1
  6. ENV PYTHONUNBUFFERED 1
  7. # install psycopg2 dependencies
  8. RUN apt-get update \
  9. && apt-get install --no-install-recommends -y python3-dev libpq-dev unixodbc-dev \
  10. && apt-get clean \
  11. && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  12. # install dependencies
  13. RUN pip install --upgrade pip setuptools
  14. COPY ./requirements.txt /app/requirements.txt
  15. RUN pip install --no-cache-dir -r requirements.txt
  16. # copy project
  17. COPY . /app/