Skip to content

Commit 3ffe5a1

Browse files
authored
Updating Dockerfile with latest Node version (#378)
1 parent 82a572b commit 3ffe5a1

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

Dockerfile

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
1-
FROM node:13.12.0-alpine
1+
FROM node:20.11-alpine
22

33
# set working directory
44
WORKDIR /app
55

6-
# add `/app/node_modules/.bin` to $PATH
7-
ENV PATH /app/node_modules/.bin:$PATH
8-
96
# install app dependencies
10-
COPY package.json ./
11-
COPY package-lock.json ./
12-
RUN npm install --silent
13-
RUN npm install
14-
#[email protected] -g --silent
7+
COPY package.json package-lock.json ./
8+
RUN npm install
159

1610
# add app
1711
COPY . ./
1812

13+
EXPOSE 3001
14+
1915
# start app
2016
CMD ["npm", "start"]

0 commit comments

Comments
 (0)