Skip to content

Commit f169991

Browse files
committed
OBS-385: group FE at end of dockerfile for faster cached dev
1 parent 957d52d commit f169991

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docker/Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ COPY docker/set_up_stackwalker.sh /tmp/set_up_stackwalker.sh
2626
RUN /tmp/set_up_stackwalker.sh && \
2727
rm /tmp/set_up_stackwalker.sh
2828

29-
# Install frontend JS deps
30-
COPY --chown=app:app ./webapp/package*.json /app/webapp/
31-
RUN cd /app/webapp/ && npm ci
32-
3329
COPY --chown=app:app requirements.txt /app/
3430
RUN pip install --no-cache-dir --no-deps -r requirements.txt && \
3531
pip check --disable-pip-version-check
@@ -41,6 +37,10 @@ ENV PYTHONUNBUFFERED=1 \
4137
NPM_ROOT_PATH=/app/webapp/ \
4238
NODE_PATH=/app/webapp/node_modules/
4339

40+
# Install frontend JS deps
41+
COPY --chown=app:app ./webapp/package*.json ./webapp/esbuild.js /app/webapp/
42+
RUN cd /app/webapp/ && npm ci
43+
4444
# app should own everything under /app in the container
4545
USER app
4646

0 commit comments

Comments
 (0)