Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +9 -2
Dockerfile
CHANGED
@@ -1,11 +1,18 @@
|
|
1 |
FROM node:latest
|
2 |
-
|
|
|
|
|
|
|
|
|
3 |
|
4 |
COPY package.json .
|
5 |
|
6 |
RUN npm install
|
7 |
|
8 |
-
COPY .
|
|
|
|
|
|
|
9 |
|
10 |
EXPOSE 7860
|
11 |
|
|
|
1 |
FROM node:latest
|
2 |
+
RUN useradd -m -u 1000 kalip
|
3 |
+
USER kalip
|
4 |
+
ENV HOME=/home/kalip
|
5 |
+
|
6 |
+
WORKDIR $HOME/app
|
7 |
|
8 |
COPY package.json .
|
9 |
|
10 |
RUN npm install
|
11 |
|
12 |
+
COPY . .
|
13 |
+
|
14 |
+
COPY --chown=kalip . $HOME/app
|
15 |
+
|
16 |
|
17 |
EXPOSE 7860
|
18 |
|