Skip to content

Commit

Permalink
Bump node version for monitoring Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-zimnoch committed Jul 5, 2024
1 parent 7f93c51 commit a59d300
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions monitoring/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14-alpine as builder
FROM node:18-alpine as builder

# Add packages necessary to perform the build process.
RUN apk add --update --no-cache \
Expand All @@ -25,20 +25,18 @@ COPY tsconfig.json ./
COPY src ./src

RUN yarn install --frozen-lockfile --ignore-scripts
RUN yarn run postinstall

RUN yarn build

# Prune development dependencies.
RUN rm -rf ./node_modules
RUN rm -rf ./external
RUN yarn install --production --frozen-lockfile --ignore-scripts
RUN yarn run postinstall

# Prune other unnecessary files from dependencies using node-prune.
RUN node-prune

FROM node:14-alpine as runner
FROM node:18-alpine as runner

WORKDIR /monitoring

Expand Down

0 comments on commit a59d300

Please sign in to comment.