summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2020-07-08 18:23:41 +0000
committerGerrit Code Review <review@openstack.org>2020-07-08 18:23:41 +0000
commit141347e0820cc1340dddbf6168fb183c83e313ba (patch)
tree262bc016909d1be89b3e812672b83d22df2a8916 /Dockerfile
parent58cac8d3558dcc6ea571063d14ef9b6b0b53e4e1 (diff)
parentb6f3167b9c4d219daddf6a86ab4df9a8eed4bec8 (diff)
downloadzuul-141347e0820cc1340dddbf6168fb183c83e313ba.tar.gz
Merge "Revert "Revert "Create zuul/web/static on demand"""
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index ed6b8ddf2..015e4ef4d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -27,7 +27,12 @@ ARG OPENSHIFT_SHA=4b0f07428ba854174c58d2e38287e5402964c9a9355f6c359d1242efd0990d
COPY . /tmp/src
RUN /tmp/src/tools/install-js-tools.sh
# Explicitly run the Javascript build
-RUN cd /tmp/src/web && yarn install -d && yarn build
+RUN cd /tmp/src \
+ && mkdir -p zuul/web/static \
+ && ln -sfn ../zuul/web/static web/build \
+ && cd /tmp/src/web \
+ && yarn install -d \
+ && yarn build
RUN assemble
# The wheel install method doesn't run the setup hooks as the source based