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
6 months ago
committed by
GitHub
6 changed files with 15 additions and 35 deletions
@ -1,14 +1,7 @@
|
||||
#!/bin/sh |
||||
|
||||
FILE="/usr/src/app/package.json" |
||||
|
||||
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/ |
||||
if [ -n "${NC_TOOL_DIR}" ]; then |
||||
mkdir -p "$NC_TOOL_DIR" |
||||
fi |
||||
|
||||
node docker/index.js |
||||
|
@ -1,10 +1,3 @@
|
||||
#!/bin/sh |
||||
|
||||
FILE="/usr/src/app/package.json" |
||||
|
||||
if [ ! -f "$FILE" ] |
||||
then |
||||
tar -xzf /usr/src/appEntry/app.tar.gz -C /usr/src/app/ |
||||
fi |
||||
|
||||
node docker/main.js |
||||
node docker/main.js |
||||
|
Loading…
Reference in new issue