Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions admin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
WORKDIR /app
COPY ./libs ./libs
COPY ./${build_dir} ./${build_dir}
RUN cd libs && npm ci && cd .. && \
cd ${build_dir} && npm ci && npm run build:${build_dir} && cd .. && \
RUN cd libs && npm ci --ignore-scripts && cd .. && \
cd ${build_dir} && npm ci --ignore-scripts && npm run build:${build_dir} && cd .. && \
rm -rf libs/node_modules ${build_dir}/node_modules

Check warning

Code scanning / Trivy

'RUN cd ...' to change directory Medium

Artifact: admin/Dockerfile
Type: dockerfile
Vulnerability DS013
Severity: MEDIUM
Message: RUN should not be used to change directory: 'cd libs && npm ci --ignore-scripts && cd .. && cd ${build_dir} && npm ci --ignore-scripts && npm run build:${build_dir} && cd .. && rm -rf libs/node_modules ${build_dir}/node_modules'. Use 'WORKDIR' statement instead.
Link: DS013


# Deploy container
Expand Down
4 changes: 2 additions & 2 deletions api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ WORKDIR /app
COPY . ./
USER root
RUN dnf install -y ca-certificates && \
cd libs && npm ci && cd .. && \
cd api && npm ci && npm run build:api
cd libs && npm ci --ignore-scripts && cd .. && \
cd api && npm ci --ignore-scripts && npm run build:api


# Deployment container
Expand Down
14 changes: 7 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: '3.8'
version: "3.8"

volumes:
postgres-data:
Expand All @@ -13,8 +13,8 @@ services:
entrypoint:
- sh
- -c
- cd libs && npm ci &&
cd ../admin && npm ci &&
- cd libs && npm ci --ignore-scripts &&
cd ../admin && npm ci --ignore-scripts &&
npm run start:admin
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4200/admin"]
Expand Down Expand Up @@ -58,7 +58,7 @@ services:
retries: 3
start_period: 60s
timeout: 5s
image: node:18 # need update to node 20
image: node:18 # need update to node 20
ports:
- 3333:3333
links:
Expand All @@ -76,9 +76,9 @@ services:
- sh
- -c
- grep -qxF 'CREATE EXTENSION IF NOT EXISTS pgcrypto'/docker-entrypoint-initdb.d/10_postgis.sh ||
sed -i '/EXISTS postgis_tiger_geocoder;*/a CREATE EXTENSION IF NOT EXISTS pgcrypto;'
/docker-entrypoint-initdb.d/10_postgis.sh &&
/usr/local/bin/docker-entrypoint.sh postgres
sed -i '/EXISTS postgis_tiger_geocoder;*/a CREATE EXTENSION IF NOT EXISTS pgcrypto;'
/docker-entrypoint-initdb.d/10_postgis.sh &&
/usr/local/bin/docker-entrypoint.sh postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=test
Expand Down
4 changes: 2 additions & 2 deletions public/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
WORKDIR /app
COPY ./libs ./libs
COPY ./${build_dir} ./${build_dir}
RUN cd libs && npm ci && cd .. && \
cd ${build_dir} && npm ci && npm run build:${build_dir} && cd .. && \
RUN cd libs && npm ci --ignore-scripts && cd .. && \
cd ${build_dir} && npm ci --ignore-scripts && npm run build:${build_dir} && cd .. && \
rm -rf libs/node_modules ${build_dir}/node_modules

Check warning

Code scanning / Trivy

'RUN cd ...' to change directory Medium

Artifact: public/Dockerfile
Type: dockerfile
Vulnerability DS013
Severity: MEDIUM
Message: RUN should not be used to change directory: 'cd libs && npm ci --ignore-scripts && cd .. && cd ${build_dir} && npm ci --ignore-scripts && npm run build:${build_dir} && cd .. && rm -rf libs/node_modules ${build_dir}/node_modules'. Use 'WORKDIR' statement instead.
Link: DS013


# Deploy container
Expand Down
Loading