From 8984319b4fe3f189bca1abc92ab13808d96d5583 Mon Sep 17 00:00:00 2001 From: "mathieu.brunot" Date: Thu, 14 Feb 2019 23:51:37 +0100 Subject: [PATCH] :construction: :whale: Build release images --- backend/Dockerfile | 4 ++-- frontend/Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 9b871773eb..8034cc6f5b 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -66,8 +66,8 @@ ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH # Copy backend source and build release COPY . /home/uxbox/backend RUN set -ex; \ - ls -l backend; \ - bash -c "/home/uxbox/backend/scripts/dist" + rm -f Dockerfile docker-entrypoint.sh; \ + bash -c "/home/uxbox/backend/scripts/dist.sh" diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 3827d7f6df..37ac5457cc 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -68,10 +68,10 @@ ENV API_URL http://127.0.0.1:6060/api # Copy frontend source and build release COPY . /home/uxbox/frontend RUN set -ex; \ - ls -l frontend; \ + rm -f Dockerfile; \ cd frontend; \ sed -i \ - -e 's/"uxbox.config.url" ".*"/"uxbox.config.url" "${API_URL}/api"/g' \ + -e 's|"uxbox.config.url" ".*"|"uxbox.config.url" "${API_URL}/api"|g' \ scripts/figwheel.clj; \ npm install; \ npm run dist; \