modifying dockerfile
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: fetch
|
GIT_STRATEGY: fetch
|
||||||
GIT_FETCH_EXTRA_FLAGS: --prune --tags --depth 1000
|
GIT_FETCH_EXTRA_FLAGS: --prune --tags --depth 500
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Use our base image
|
# Use our base image
|
||||||
FROM gitlab.luranasoft.com:5050/luos/docker/base-image:1.0.30-php8.3
|
FROM gitlab.luranasoft.com:5050/luos/docker/base-image:1.0.33-php8.3
|
||||||
|
|
||||||
# Set the working directory
|
# Set the working directory
|
||||||
WORKDIR /code
|
WORKDIR /code
|
||||||
|
|||||||
@@ -9,10 +9,22 @@ fi
|
|||||||
|
|
||||||
echo "Building Lurana Open Source version $1"
|
echo "Building Lurana Open Source version $1"
|
||||||
|
|
||||||
|
# Install Node.js 14
|
||||||
|
#curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
|
||||||
|
#export NVM_DIR="$HOME/.nvm"
|
||||||
|
#[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||||
|
nvm use 14
|
||||||
|
|
||||||
# Update and install Composer dependencies
|
# Update and install Composer dependencies
|
||||||
composer update
|
composer update
|
||||||
composer install
|
composer install
|
||||||
|
|
||||||
|
echo "Building Laravel+Vue "
|
||||||
|
|
||||||
|
node -v
|
||||||
|
npm install
|
||||||
|
npm run dev
|
||||||
|
|
||||||
# Construct the Docker image tag name
|
# Construct the Docker image tag name
|
||||||
tagname="gitlab.luranasoft.com:5050/luos/core/luos:$1"
|
tagname="gitlab.luranasoft.com:5050/luos/core/luos:$1"
|
||||||
echo "Docker tag name: $tagname"
|
echo "Docker tag name: $tagname"
|
||||||
|
|||||||
Reference in New Issue
Block a user