@@ -68,25 +68,20 @@ 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/certs/* \
8278 /
83- COPY wsgi.py manage.py docker/unit-tests.sh ./
79+ COPY wsgi.py manage.py ./
8480COPY dojo/ ./dojo/
8581
8682# Add extra fixtures to docker image which are loaded by the initializer
8783COPY docker/extra_fixtures/* /app/dojo/fixtures/
8884
89- COPY tests/ ./tests/
9085RUN \
9186 # Remove placeholder copied from docker/certs
9287 rm -f /readme.txt && \
@@ -139,9 +134,19 @@ ENTRYPOINT ["/entrypoint-uwsgi.sh"]
139134
140135FROM release AS development
141136USER root
142- COPY requirements-dev.txt ./
137+ COPY \
138+ requirements-dev.txt \
139+ docker/unit-tests.sh \
140+ ./
141+ COPY \
142+ docker/entrypoint-celery-worker-dev.sh \
143+ docker/entrypoint-uwsgi-dev.sh \
144+ docker/entrypoint-unit-tests.sh \
145+ docker/entrypoint-unit-tests-devDocker.sh \
146+ /
143147RUN pip3 install --no-cache-dir -r requirements-dev.txt
144148USER ${uid}
145149
146150FROM development AS django-unittests
147151COPY unittests/ ./unittests/
152+ COPY tests/ ./tests/
0 commit comments