Dockerfile.ReplicaV1 833 B

1234567891011121314151617181920212223
  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 django-cqrs==1.3.1
  12. #RUN pip install poetry
  13. #RUN poetry config virtualenvs.create false
  14. #RUN poetry install && pip install psycopg2-binary redis django-cqrs==1.3.1
  15. COPY . /replica/
  16. ADD integration_tests/manage.py /replica/
  17. WORKDIR /replica/