Skip to content

Commit 2fd0d91

Browse files
Updated Dockerfile
Npm not found issue Signed-off-by: Jegath S <[email protected]>
1 parent b9e0c59 commit 2fd0d91

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

Dockerfile

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM python:3.10-slim as build
22

33
RUN apt-get update
4-
RUN apt-get install -y --no-install-recommends build-essential gcc
4+
RUN apt-get install -y --no-install-recommends build-essential gcc
55

66
WORKDIR /usr/app
77

@@ -11,8 +11,11 @@ RUN apt-get install -y ca-certificates curl gnupg
1111
RUN mkdir -p /etc/apt/keyrings
1212
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
1313
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
14-
RUN apt-get update -y
15-
RUN apt-get install nodejs -y
14+
15+
RUN apt-get update && apt-get upgrade -y && \
16+
apt-get install -y nodejs \
17+
npm
18+
# RUN apt-get install nodejs -y
1619

1720
RUN npm install -g renovate -y
1821

@@ -36,6 +39,9 @@ WORKDIR /usr/app
3639
COPY --chown=python:python --from=build /usr/app/venv ./venv
3740
COPY --chown=python:python . .
3841

42+
RUN apt-get -y update; apt-get -y install curl
43+
RUN curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin
44+
3945

4046
USER 999
4147

@@ -50,10 +56,11 @@ RUN python -m build
5056
#Find the wheel file name and install the wheel
5157
RUN pip install $(find dist -name "*.whl")
5258

59+
# RUN apt-get -y update; apt-get -y install curl
60+
61+
5362
EXPOSE 5000
5463

5564
RUN chmod 755 ./run.sh
5665

5766
ENTRYPOINT ["./run.sh"]
58-
59-
# CMD ["python", "./src/scsctl/server.py"]

0 commit comments

Comments
 (0)