Spaces:
Running
Running
ffreemt
commited on
Commit
•
d122bb3
1
Parent(s):
e9198c2
Update USER 1000
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -3,8 +3,6 @@ FROM node:lts AS BUILD_IMAGE
|
|
3 |
WORKDIR /app
|
4 |
|
5 |
COPY . /app
|
6 |
-
RUN chown -R 1000:1000 /app
|
7 |
-
USER 1000
|
8 |
|
9 |
RUN yarn install --registry https://registry.npmmirror.com/ && yarn run build
|
10 |
|
@@ -18,6 +16,9 @@ COPY --from=BUILD_IMAGE /app/node_modules /app/node_modules
|
|
18 |
|
19 |
WORKDIR /app
|
20 |
|
|
|
|
|
|
|
21 |
EXPOSE 7860
|
22 |
|
23 |
CMD ["npm", "start"]
|
|
|
3 |
WORKDIR /app
|
4 |
|
5 |
COPY . /app
|
|
|
|
|
6 |
|
7 |
RUN yarn install --registry https://registry.npmmirror.com/ && yarn run build
|
8 |
|
|
|
16 |
|
17 |
WORKDIR /app
|
18 |
|
19 |
+
RUN chown -R 1000:1000 /app
|
20 |
+
USER 1000
|
21 |
+
|
22 |
EXPOSE 7860
|
23 |
|
24 |
CMD ["npm", "start"]
|