Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +9 -3
Dockerfile
CHANGED
@@ -1,10 +1,16 @@
|
|
1 |
# Use a base Python image
|
2 |
FROM python:3.9-slim
|
3 |
|
4 |
-
# Install curl, git, and
|
5 |
RUN apt-get update && \
|
6 |
-
apt-get install -y curl git
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
# Install Python dependencies (Gradio)
|
10 |
RUN pip install gradio
|
|
|
1 |
# Use a base Python image
|
2 |
FROM python:3.9-slim
|
3 |
|
4 |
+
# Install curl, git, and dependencies for Node.js
|
5 |
RUN apt-get update && \
|
6 |
+
apt-get install -y curl git ca-certificates lsb-release
|
7 |
+
|
8 |
+
# Install Node.js from NodeSource (ensure it's available before installing pnpm)
|
9 |
+
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && \
|
10 |
+
apt-get install -y nodejs
|
11 |
+
|
12 |
+
# Install pnpm globally
|
13 |
+
RUN curl -fsSL https://get.pnpm.io/v6.16.js | node - add --global pnpm
|
14 |
|
15 |
# Install Python dependencies (Gradio)
|
16 |
RUN pip install gradio
|