mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Improve install command for builds
This commit is contained in:
@@ -46,7 +46,7 @@ test:frontend:
|
|||||||
- frontend/node_modules
|
- frontend/node_modules
|
||||||
script:
|
script:
|
||||||
- cd frontend
|
- cd frontend
|
||||||
- npm i --silent > /dev/null
|
- npm run build:install --silent
|
||||||
- npm run lint --silent
|
- npm run lint --silent
|
||||||
# - npm run flow --silent # disabled due to missing libelf.so.1 in docker container
|
# - npm run flow --silent # disabled due to missing libelf.so.1 in docker container
|
||||||
- npm run test --silent
|
- npm run test --silent
|
||||||
|
@@ -34,7 +34,7 @@ COPY ./frontend/scripts /var/www/frontend/scripts
|
|||||||
COPY ./frontend/webpack-utils /var/www/frontend/webpack-utils
|
COPY ./frontend/webpack-utils /var/www/frontend/webpack-utils
|
||||||
|
|
||||||
RUN cd ../frontend \
|
RUN cd ../frontend \
|
||||||
&& npm install --quiet --depth -1 \
|
&& npm run build:install \
|
||||||
&& cd -
|
&& cd -
|
||||||
|
|
||||||
# Удаляем ключи из production контейнера на всякий случай
|
# Удаляем ключи из production контейнера на всякий случай
|
||||||
|
@@ -34,7 +34,7 @@ COPY ./frontend/scripts /var/www/frontend/scripts
|
|||||||
COPY ./frontend/webpack-utils /var/www/frontend/webpack-utils
|
COPY ./frontend/webpack-utils /var/www/frontend/webpack-utils
|
||||||
|
|
||||||
RUN cd ../frontend \
|
RUN cd ../frontend \
|
||||||
&& npm install --quiet --depth -1 \
|
&& npm run build:install \
|
||||||
&& cd -
|
&& cd -
|
||||||
|
|
||||||
# Наконец переносим все сорцы внутрь контейнера
|
# Наконец переносим все сорцы внутрь контейнера
|
||||||
|
Reference in New Issue
Block a user