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:
parent
957688b47d
commit
376de340d6
2 changed files with 5 additions and 3 deletions
|
@ -1,7 +1,8 @@
|
||||||
FROM monogramm/docker-uxbox-builder:latest
|
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 frontend source and build release
|
||||||
COPY . /home/uxbox/frontend
|
COPY . /home/uxbox/frontend
|
||||||
|
@ -13,7 +14,7 @@ RUN set -ex; \
|
||||||
-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; \
|
scripts/figwheel.clj; \
|
||||||
npm install; \
|
npm install; \
|
||||||
npm run dist; \
|
npm run prod; \
|
||||||
bash -c "/home/uxbox/frontend/scripts/dist-main"; \
|
bash -c "/home/uxbox/frontend/scripts/dist-main"; \
|
||||||
bash -c "/home/uxbox/frontend/scripts/dist-view"; \
|
bash -c "/home/uxbox/frontend/scripts/dist-view"; \
|
||||||
bash -c "/home/uxbox/frontend/scripts/dist-worker"
|
bash -c "/home/uxbox/frontend/scripts/dist-worker"
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"watch": "gulp",
|
"watch": "gulp",
|
||||||
"dist": "gulp dist",
|
"dist": "gulp dist",
|
||||||
|
"prod": "gulp dist --production",
|
||||||
"clean": "gulp clean",
|
"clean": "gulp clean",
|
||||||
"figwheel": "PATH=./scripts:$PATH ./scripts/build-worker && PATH=./scripts:$PATH ./scripts/figwheel",
|
"figwheel": "PATH=./scripts:$PATH ./scripts/build-worker && PATH=./scripts:$PATH ./scripts/figwheel",
|
||||||
"test-watch": "PATH=./scripts:$PATH ./scripts/watch",
|
"test-watch": "PATH=./scripts:$PATH ./scripts/watch",
|
||||||
|
|
Loading…
Add table
Reference in a new issue