0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-10 14:51:37 -05:00

🐳 Minify in production image

This commit is contained in:
mathieu.brunot 2019-02-19 16:01:31 +01:00
parent 957688b47d
commit 376de340d6
No known key found for this signature in database
GPG key ID: 81584BEAF692D7E0
2 changed files with 5 additions and 3 deletions

View file

@ -1,7 +1,8 @@
FROM monogramm/docker-uxbox-builder:latest
ENV API_URL=http://127.0.0.1:6060/api
ENV LEIN_ROOT=TRUE
ENV LEIN_ROOT=TRUE \
API_URL=http://127.0.0.1:6060/api \
IS_DEMO=false
# Copy frontend source and build release
COPY . /home/uxbox/frontend
@ -13,7 +14,7 @@ RUN set -ex; \
-e 's|"uxbox.config.url" ".*"|"uxbox.config.url" "${API_URL}/api"|g' \
scripts/figwheel.clj; \
npm install; \
npm run dist; \
npm run prod; \
bash -c "/home/uxbox/frontend/scripts/dist-main"; \
bash -c "/home/uxbox/frontend/scripts/dist-view"; \
bash -c "/home/uxbox/frontend/scripts/dist-worker"

View file

@ -11,6 +11,7 @@
"scripts": {
"watch": "gulp",
"dist": "gulp dist",
"prod": "gulp dist --production",
"clean": "gulp clean",
"figwheel": "PATH=./scripts:$PATH ./scripts/build-worker && PATH=./scripts:$PATH ./scripts/figwheel",
"test-watch": "PATH=./scripts:$PATH ./scripts/watch",