Spaces:
Runtime error
Runtime error
mahiatlinux
commited on
Commit
•
1584a07
1
Parent(s):
9d45a54
Update Dockerfile
Browse files- Dockerfile +12 -0
Dockerfile
CHANGED
@@ -1,4 +1,16 @@
|
|
1 |
FROM ubuntu:latest
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
CMD npm install
|
4 |
CMD npm start
|
|
|
1 |
FROM ubuntu:latest
|
2 |
|
3 |
+
# Set environment variables for Node.js installation
|
4 |
+
ENV NODE_VERSION=21
|
5 |
+
|
6 |
+
# Update package lists
|
7 |
+
RUN apt-get update && apt-get install -y curl
|
8 |
+
|
9 |
+
# Add Node.js repository
|
10 |
+
RUN curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash -
|
11 |
+
|
12 |
+
# Install Node.js
|
13 |
+
RUN apt-get install -y nodejs
|
14 |
+
|
15 |
CMD npm install
|
16 |
CMD npm start
|