Skip to content

Commit

Permalink
Updating Dockerfile with latest Node version (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamou02 authored Jul 29, 2024
1 parent 82a572b commit 3ffe5a1
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
FROM node:13.12.0-alpine
FROM node:20.11-alpine

# set working directory
WORKDIR /app

# add `/app/node_modules/.bin` to $PATH
ENV PATH /app/node_modules/.bin:$PATH

# install app dependencies
COPY package.json ./
COPY package-lock.json ./
RUN npm install --silent
RUN npm install
#[email protected] -g --silent
COPY package.json package-lock.json ./
RUN npm install

# add app
COPY . ./

EXPOSE 3001

# start app
CMD ["npm", "start"]

0 comments on commit 3ffe5a1

Please sign in to comment.