@@ -68,26 +68,21 @@ RUN \
6868COPY \
6969 docker/entrypoint-celery-beat.sh \
7070 docker/entrypoint-celery-worker.sh \
71- docker/entrypoint-celery-worker-dev.sh \
7271 docker/entrypoint-initializer.sh \
7372 docker/entrypoint-first-boot.sh \
7473 docker/entrypoint-uwsgi.sh \
75- docker/entrypoint-uwsgi-dev.sh \
76- docker/entrypoint-unit-tests.sh \
77- docker/entrypoint-unit-tests-devDocker.sh \
7874 docker/wait-for-it.sh \
7975 docker/secret-file-loader.sh \
8076 docker/reach_database.sh \
8177 docker/reach_broker.sh \
8278 docker/certs/* \
8379 /
84- COPY wsgi.py manage.py docker/unit-tests.sh ./
80+ COPY wsgi.py manage.py ./
8581COPY dojo/ ./dojo/
8682
8783# Add extra fixtures to docker image which are loaded by the initializer
8884COPY docker/extra_fixtures/* /app/dojo/fixtures/
8985
90- COPY tests/ ./tests/
9186RUN \
9287 # Remove placeholder copied from docker/certs
9388 rm -f /readme.txt && \
@@ -140,9 +135,20 @@ ENTRYPOINT ["/entrypoint-uwsgi.sh"]
140135
141136FROM release AS development
142137USER root
143- COPY requirements-dev.txt ./
144- RUN pip3 install --no-cache-dir -r requirements-dev.txt
138+ COPY \
139+ requirements-dev.txt \
140+ docker/unit-tests.sh \
141+ ./
142+ COPY \
143+ docker/entrypoint-celery-worker-dev.sh \
144+ docker/entrypoint-uwsgi-dev.sh \
145+ docker/entrypoint-unit-tests.sh \
146+ docker/entrypoint-unit-tests-devDocker.sh \
147+ /
148+ RUN pip3 install --no-cache-dir -r requirements-dev.txt && \
149+ chmod 775 /*.sh
145150USER ${uid}
146151
147152FROM development AS django-unittests
148153COPY unittests/ ./unittests/
154+ COPY tests/ ./tests/
0 commit comments