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.

35 lines
1.1 KiB

  1. ARG PYTHON_VERSION="3.8.6"
  2. FROM python:${PYTHON_VERSION}-slim-buster
  3. RUN apt-get update \
  4. && apt-get install -y --no-install-recommends \
  5. wget=1.20.1-1.1 \
  6. netcat=1.10-41.1 \
  7. libpq-dev=11.9-0+deb10u1 \
  8. unixodbc-dev=2.3.6-0.1 \
  9. g++=4:8.3.0-1 \
  10. libssl-dev=1.1.1d-0+deb10u4 \
  11. && apt-get clean
  12. ENV ENTRYKIT_VERSION 0.4.0
  13. RUN wget https://github.com/progrium/entrykit/releases/download/v${ENTRYKIT_VERSION}/entrykit_${ENTRYKIT_VERSION}_Linux_x86_64.tgz \
  14. && tar -xvzf entrykit_${ENTRYKIT_VERSION}_Linux_x86_64.tgz \
  15. && rm entrykit_${ENTRYKIT_VERSION}_Linux_x86_64.tgz \
  16. && mv entrykit /bin/entrykit \
  17. && chmod +x /bin/entrykit \
  18. && entrykit --symlink
  19. WORKDIR /src
  20. RUN pip install --upgrade pip && pip install pipenv==2020.11.15
  21. RUN echo "if [[ -z \"\${VIRTUAL_ENV}\" ]]; then" >> /root/.bashrc && \
  22. echo "source \$(pipenv --venv)/bin/activate" >> /root/.bashrc && \
  23. echo "fi" >> /root/.bashrc
  24. COPY tools/ /opt/bin/
  25. ENTRYPOINT [ \
  26. "prehook", "/opt/bin/docker-setup.sh", "--", \
  27. "/opt/bin/docker-entrypoint.sh"]