Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +17 -0
Dockerfile
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM node:latest
|
2 |
+
|
3 |
+
RUN mkdir /home/user && chown node:node /home/user
|
4 |
+
|
5 |
+
WORKDIR /home/user
|
6 |
+
|
7 |
+
USER node
|
8 |
+
|
9 |
+
COPY --chown=node:node package*.json ./
|
10 |
+
|
11 |
+
RUN npm install
|
12 |
+
|
13 |
+
COPY --chown=node:node . .
|
14 |
+
|
15 |
+
EXPOSE 7860
|
16 |
+
|
17 |
+
CMD [ "npm", "start" ]
|