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
489 B

  1. ARG PYTHON_VERSION="3.8.6"
  2. FROM python:${PYTHON_VERSION}-slim-buster
  3. CMD ["python3"]
  4. WORKDIR /app
  5. ENV PYTHONDONTWRITEBYTECODE 1
  6. ENV PYTHONUNBUFFERED 1
  7. COPY . /app/
  8. # hadolint ignore=DL3013
  9. RUN apt-get update \
  10. && apt-get install -y --no-install-recommends \
  11. netcat=1.10-41.1 \
  12. libpq-dev=11.9-0+deb10u1 \
  13. unixodbc-dev=2.3.6-0.1 \
  14. g++=4:8.3.0-1 \
  15. && pip install --no-cache-dir -U pip setuptools \
  16. && pip install --no-cache-dir -r requirements.txt \
  17. && apt-get clean