Dockerfile.Replica 797 B

123456789101112131415161718192021222324
  1. FROM python:3.10
  2. ENV DOCKERIZE_VERSION v0.6.1
  3. RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
  4. && tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
  5. && rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
  6. ENV PYTHONUNBUFFERED 1
  7. ENV PYTHONPATH /replica
  8. RUN mkdir /replica
  9. COPY ./requirements/ /replica/requirements
  10. #COPY pyproject.toml pyproject.toml
  11. RUN pip install -r /replica/requirements/dev.txt -r /replica/requirements/test.txt && pip install psycopg2-binary redis
  12. #RUN pip install poetry
  13. #RUN poetry install
  14. #RUN poetry config virtualenvs.create false
  15. #RUN pip install psycopg2-binary redis
  16. COPY . /replica/
  17. ADD integration_tests/manage.py /replica/
  18. WORKDIR /replica/