mirror of https://github.com/nocodb/nocodb
Browse Source
* fix: avoid undesirable tar -> untar in container image * fix: apply shellcheck suggestions * fix: copy production code to proper dir --------- Co-authored-by: mertmit <mertmit99@gmail.com>pull/8475/head
Salim B
7 months ago
committed by
GitHub
6 changed files with 15 additions and 35 deletions
@ -1,14 +1,7 @@ |
|||||||
#!/bin/sh |
#!/bin/sh |
||||||
|
|
||||||
FILE="/usr/src/app/package.json" |
if [ -n "${NC_TOOL_DIR}" ]; then |
||||||
|
mkdir -p "$NC_TOOL_DIR" |
||||||
if [ ! -z "${NC_TOOL_DIR}" ]; then |
|
||||||
mkdir -p $NC_TOOL_DIR |
|
||||||
fi |
|
||||||
|
|
||||||
if [ ! -f "$FILE" ] |
|
||||||
then |
|
||||||
tar -xzf /usr/src/appEntry/app.tar.gz -C /usr/src/app/ |
|
||||||
fi |
fi |
||||||
|
|
||||||
node docker/index.js |
node docker/index.js |
||||||
|
@ -1,10 +1,3 @@ |
|||||||
#!/bin/sh |
#!/bin/sh |
||||||
|
|
||||||
FILE="/usr/src/app/package.json" |
node docker/main.js |
||||||
|
|
||||||
if [ ! -f "$FILE" ] |
|
||||||
then |
|
||||||
tar -xzf /usr/src/appEntry/app.tar.gz -C /usr/src/app/ |
|
||||||
fi |
|
||||||
|
|
||||||
node docker/main.js |
|
||||||
|
Loading…
Reference in new issue