Skip to content

Commit

Permalink
fix: Use Node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
LautaroPetaccio committed Apr 3, 2024
1 parent 287eb2e commit 1513778
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG RUN

FROM node:18-alpine as builderenv
FROM node:20-alpine as builderenv

WORKDIR /app

Expand All @@ -11,7 +11,6 @@ RUN apk add --no-cache py3-setuptools python3-dev build-base
# install dependencies
COPY package.json /app/package.json
COPY package-lock.json /app/package-lock.json
RUN npm cache clean --force
RUN npm install

# build the app
Expand All @@ -20,10 +19,9 @@ RUN npm run build
RUN npm run test

# remove devDependencies, keep only used dependencies
RUN npm cache clean --force
RUN npm install --only=production

FROM node:18-alpine
FROM node:20-alpine

RUN apk update
RUN apk add --no-cache tini
Expand Down

0 comments on commit 1513778

Please sign in to comment.