Skip to content

Commit

Permalink
fix: prune indeed
Browse files Browse the repository at this point in the history
  • Loading branch information
kalinkrustev committed Jun 7, 2024
1 parent fdbf3a5 commit 41632f2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ WORKDIR /opt/app
RUN apk --no-cache add git
RUN apk add --no-cache -t build-dependencies make gcc g++ python3 libtool openssl-dev autoconf automake bash \
&& cd $(npm root -g)/npm
# && npm config set unsafe-perm true
# && npm config set unsafe-perm true
# && npm install -g node-gyp
COPY package.json package-lock.json* /opt/app/

RUN npm ci
RUN npm prune --omit=dev

FROM node:${NODE_VERSION}

Expand All @@ -32,8 +33,6 @@ WORKDIR /opt/app
RUN mkdir ./logs && touch ./logs/combined.log
RUN ln -sf /dev/stdout ./logs/combined.log

RUN npm prune --omit=dev

# Create a non-root user: ml-user
RUN adduser -D app-user
USER app-user
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"@mojaloop/central-services-shared": "18.4.0-snapshot.16",
"@mojaloop/central-services-stream": "11.3.0",
"@mojaloop/event-sdk": "14.1.0",
"@mojaloop/sdk-standard-components": "18.1.0",
"@mojaloop/sdk-standard-components": "18.2.0",
"@now-ims/hapi-now-auth": "2.1.0",
"axios": "1.7.2",
"blipp": "4.0.2",
Expand Down

0 comments on commit 41632f2

Please sign in to comment.