Spaces:
Runtime error
Runtime error
Commit
·
58b6e0f
1
Parent(s):
1c2fd7e
better intallation
Browse files- Dockerfile +7 -2
Dockerfile
CHANGED
|
@@ -1,8 +1,13 @@
|
|
| 1 |
FROM python:3.9
|
| 2 |
|
| 3 |
-
# install nodejs
|
| 4 |
ENV PYTHONUNBUFFERED 1
|
| 5 |
-
RUN apt-get update &&
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
# print npm path
|
| 8 |
RUN which npm
|
|
|
|
| 1 |
FROM python:3.9
|
| 2 |
|
| 3 |
+
# install nodejs and npm
|
| 4 |
ENV PYTHONUNBUFFERED 1
|
| 5 |
+
RUN apt-get update && \
|
| 6 |
+
apt-get install -y curl && \
|
| 7 |
+
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
|
| 8 |
+
apt-get install -y nodejs && \
|
| 9 |
+
apt-get clean && \
|
| 10 |
+
rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
# print npm path
|
| 13 |
RUN which npm
|