Skip to content

Commit c61b218

Browse files
committed
Include postcss/autoreload dependencies in default image target, as using a separate target/image makes config to complicated for the MB's saved.
1 parent 286d44e commit c61b218

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docker/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,14 @@ COPY --from=frontend --chown=nobody:nogroup /app/static_frontend/css/*.css /app/
223223
# generate language files
224224
RUN python3 bin/pofiles.py to_django
225225

226+
# copy dependencies to rebuild CSS (postcss)
227+
COPY --from=frontend /usr/local/bin/ /usr/local/bin/
228+
COPY --from=frontend /usr/local/lib/node_modules /usr/local/lib/node_modules
229+
COPY --from=frontend /app/frontend/node_modules /app/frontend/node_modules
230+
231+
# copy browser reload module
232+
COPY --from=linttest-deps /usr/local/lib/python${PYTHON_VERSION}/dist-packages/django_browser_reload /usr/local/lib/python${PYTHON_VERSION}/dist-packages/django_browser_reload
233+
226234
# use fake version to prevent building the next steps when only the version changes
227235
ENV SETUPTOOLS_SCM_PRETEND_VERSION=0.0.0-build0
228236

0 commit comments

Comments
 (0)