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.

20 lines
463 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. # install dependencies
  11. RUN pip install --upgrade pip setuptools
  12. COPY ./requirements.txt /app/requirements.txt
  13. RUN pip install --no-cache-dir -r requirements.txt
  14. # copy project
  15. COPY . /app/