Spaces:
Paused
Paused
Update dockerfile to node 20 (#601)
Browse files- 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:
|
| 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:
|
| 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 |
|