nsarrazin HF staff commited on
Commit
c51eb83
1 Parent(s): 91d11b2

Update dockerfile to node 20 (#601)

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
  # syntax=docker/dockerfile:1
2
  # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
3
  # you will also find guides on how best to write your Dockerfile
4
- FROM node:19 as builder-production
5
 
6
  WORKDIR /app
7
 
@@ -21,7 +21,7 @@ COPY --link --chown=1000 . .
21
  RUN --mount=type=secret,id=DOTENV_LOCAL,dst=.env.local \
22
  npm run build
23
 
24
- FROM node:19-slim
25
 
26
  RUN npm install -g pm2
27
 
1
  # syntax=docker/dockerfile:1
2
  # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
3
  # you will also find guides on how best to write your Dockerfile
4
+ FROM node:20 as builder-production
5
 
6
  WORKDIR /app
7
 
21
  RUN --mount=type=secret,id=DOTENV_LOCAL,dst=.env.local \
22
  npm run build
23
 
24
+ FROM node:20-slim
25
 
26
  RUN npm install -g pm2
27