Skip to content

Commit

Permalink
feat: use node:18-bullseye instead of node:18-bullseye-slim
Browse files Browse the repository at this point in the history
would have to install python because `npm ci --omit=dev` triggers gyp, and gyp requires python. Installing python was hard for some reason!
  • Loading branch information
jtakalai committed May 24, 2024
1 parent c38ea02 commit eb16876
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ RUN npm run build
RUN chmod +x dist/bin/*.js
RUN rm -rf node_modules

FROM node:18-bullseye-slim
FROM node:18-bullseye
USER node
WORKDIR /usr/src/app
COPY --chown=node:node --from=build /usr/src/app/ .
RUN apt-get update && apt-get install -y python3
RUN npm ci --omit=dev

EXPOSE 4001/tcp
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"private": true,
"scripts": {
"build": "tsc -b tsconfig.build.json",
"docker:build": "docker build --tag streamr/stream-metrics-index:latest .",
"docker:push": "docker buildx build --platform linux/amd64,linux/arm64 --tag streamr/stream-metrics-index:latest --push .",
"test": "jest --runInBand",
"eslint": "eslint --cache --cache-location=node_modules/.cache/.eslintcache/ '*/**/*.{js,ts}'"
},
Expand Down

0 comments on commit eb16876

Please sign in to comment.