Skip to content

Commit 0a71179

Browse files
chore(ci): npm ci --ignore-scripts (#858)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 8f98f76 commit 0a71179

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

admin/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ ARG build_dir
1111
WORKDIR /app
1212
COPY ./libs ./libs
1313
COPY ./${build_dir} ./${build_dir}
14-
RUN cd libs && npm ci && cd .. && \
15-
cd ${build_dir} && npm ci && npm run build:${build_dir} && cd .. && \
14+
RUN cd libs && npm ci --ignore-scripts && cd .. && \
15+
cd ${build_dir} && npm ci --ignore-scripts && npm run build:${build_dir} && cd .. && \
1616
rm -rf libs/node_modules ${build_dir}/node_modules
1717

1818

api/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ WORKDIR /app
66
COPY . ./
77
USER root
88
RUN dnf install -y ca-certificates && \
9-
cd libs && npm ci && cd .. && \
10-
cd api && npm ci && npm run build:api
9+
cd libs && npm ci --ignore-scripts && cd .. && \
10+
cd api && npm ci --ignore-scripts && npm run build:api
1111

1212

1313
# Deployment container

docker-compose.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
version: '3.8'
2+
version: "3.8"
33

44
volumes:
55
postgres-data:
@@ -13,8 +13,8 @@ services:
1313
entrypoint:
1414
- sh
1515
- -c
16-
- cd libs && npm ci &&
17-
cd ../admin && npm ci &&
16+
- cd libs && npm ci --ignore-scripts &&
17+
cd ../admin && npm ci --ignore-scripts &&
1818
npm run start:admin
1919
healthcheck:
2020
test: ["CMD", "curl", "-f", "http://localhost:4200/admin"]
@@ -58,7 +58,7 @@ services:
5858
retries: 3
5959
start_period: 60s
6060
timeout: 5s
61-
image: node:18 # need update to node 20
61+
image: node:18 # need update to node 20
6262
ports:
6363
- 3333:3333
6464
links:
@@ -76,9 +76,9 @@ services:
7676
- sh
7777
- -c
7878
- grep -qxF 'CREATE EXTENSION IF NOT EXISTS pgcrypto'/docker-entrypoint-initdb.d/10_postgis.sh ||
79-
sed -i '/EXISTS postgis_tiger_geocoder;*/a CREATE EXTENSION IF NOT EXISTS pgcrypto;'
80-
/docker-entrypoint-initdb.d/10_postgis.sh &&
81-
/usr/local/bin/docker-entrypoint.sh postgres
79+
sed -i '/EXISTS postgis_tiger_geocoder;*/a CREATE EXTENSION IF NOT EXISTS pgcrypto;'
80+
/docker-entrypoint-initdb.d/10_postgis.sh &&
81+
/usr/local/bin/docker-entrypoint.sh postgres
8282
environment:
8383
- POSTGRES_USER=postgres
8484
- POSTGRES_PASSWORD=test

public/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ ARG build_dir
1010
WORKDIR /app
1111
COPY ./libs ./libs
1212
COPY ./${build_dir} ./${build_dir}
13-
RUN cd libs && npm ci && cd .. && \
14-
cd ${build_dir} && npm ci && npm run build:${build_dir} && cd .. && \
13+
RUN cd libs && npm ci --ignore-scripts && cd .. && \
14+
cd ${build_dir} && npm ci --ignore-scripts && npm run build:${build_dir} && cd .. && \
1515
rm -rf libs/node_modules ${build_dir}/node_modules
1616

1717

0 commit comments

Comments
 (0)