mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-08 22:42:54 +00:00
ci: adjust npm & node versions and use npm ci
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
image: registry.gitlab.com/openstapps/app
|
image: registry.gitlab.com/openstapps/app
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- npm install
|
- npm ci
|
||||||
|
|
||||||
default:
|
default:
|
||||||
tags:
|
tags:
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ LABEL version="2.0.0" \
|
|||||||
### Configure versions to install
|
### Configure versions to install
|
||||||
ENV ANDROID_APIS="android-30" \
|
ENV ANDROID_APIS="android-30" \
|
||||||
ANDROID_BUILD_TOOLS_VERSION="30.0.2" \
|
ANDROID_BUILD_TOOLS_VERSION="30.0.2" \
|
||||||
NPM_VERSION="latest" \
|
NPM_VERSION="^6.0.0" \
|
||||||
IONIC_VERSION="^6.0.0" \
|
IONIC_VERSION="^6.0.0" \
|
||||||
CORDOVA_VERSION="^10.0.0" \
|
CORDOVA_VERSION="^10.0.0" \
|
||||||
CORDOVA_RES_VERSION="latest" \
|
CORDOVA_RES_VERSION="latest" \
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# Dependencies need to be installed beforehand
|
# Dependencies need to be installed beforehand
|
||||||
# Needs to be build beforehand
|
# Needs to be build beforehand
|
||||||
# docker build -t registry.gitlab.com/openstapps/app/executable:core-x.y -f Dockerfile.Executable .
|
# docker build -t registry.gitlab.com/openstapps/app/executable:core-x.y -f Dockerfile.Executable .
|
||||||
FROM node:10-alpine
|
FROM node:14-alpine
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . /app
|
COPY . /app
|
||||||
@@ -17,4 +17,4 @@ EXPOSE 8100
|
|||||||
RUN npm rebuild node-sass
|
RUN npm rebuild node-sass
|
||||||
|
|
||||||
# Starts the app
|
# Starts the app
|
||||||
CMD ng run app:serve --host=0.0.0.0 --port=8100
|
CMD ng run app:serve --host=0.0.0.0 --port=8100
|
||||||
|
|||||||
Reference in New Issue
Block a user