Spaces:
Runtime error
Runtime error
Commit
·
ef70d5c
1
Parent(s):
b720f38
improve the template by using a Python + Node image
Browse files- Dockerfile +6 -1
- requirements.txt +1 -0
Dockerfile
CHANGED
@@ -1,4 +1,6 @@
|
|
1 |
-
|
|
|
|
|
2 |
|
3 |
# Set up a new user named "user" with user ID 1000
|
4 |
RUN useradd -o -u 1000 user
|
@@ -20,6 +22,9 @@ COPY --chown=user package*.json $HOME/app
|
|
20 |
|
21 |
RUN npm install
|
22 |
|
|
|
|
|
|
|
23 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
24 |
COPY --chown=user . $HOME/app
|
25 |
|
|
|
1 |
+
# pick your favorite Python + Node bundle from here:
|
2 |
+
# https://hub.docker.com/r/nikolaik/python-nodejs
|
3 |
+
FROM nikolaik/python-nodejs:python3.11-nodejs18
|
4 |
|
5 |
# Set up a new user named "user" with user ID 1000
|
6 |
RUN useradd -o -u 1000 user
|
|
|
22 |
|
23 |
RUN npm install
|
24 |
|
25 |
+
COPY requirements.txt requirements.txt
|
26 |
+
# RUN pip install -r requirements.txt
|
27 |
+
|
28 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
29 |
COPY --chown=user . $HOME/app
|
30 |
|
requirements.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
|