Spaces:
Sleeping
Sleeping
build: fix docker
Browse files- Dockerfile +3 -1
- package.json +1 -1
Dockerfile
CHANGED
@@ -21,11 +21,13 @@ WORKDIR $HOME/app
|
|
21 |
# where available (npm@5+)
|
22 |
COPY --chown=user package*.json $HOME/app
|
23 |
|
24 |
-
RUN npm install
|
25 |
|
26 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
27 |
COPY --chown=user . $HOME/app
|
28 |
|
|
|
|
|
29 |
EXPOSE 7860
|
30 |
|
31 |
CMD [ "npm", "run", "start" ]
|
|
|
21 |
# where available (npm@5+)
|
22 |
COPY --chown=user package*.json $HOME/app
|
23 |
|
24 |
+
RUN npm install
|
25 |
|
26 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
27 |
COPY --chown=user . $HOME/app
|
28 |
|
29 |
+
RUN npm run build
|
30 |
+
|
31 |
EXPOSE 7860
|
32 |
|
33 |
CMD [ "npm", "run", "start" ]
|
package.json
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
"scripts": {
|
6 |
"dev": "set DEBUG=gradio-chatbot && next dev --port 7860 --hostname 0.0.0.0",
|
7 |
"build": "next build",
|
8 |
-
"start": "next start",
|
9 |
"lint": "next lint"
|
10 |
},
|
11 |
"dependencies": {
|
|
|
5 |
"scripts": {
|
6 |
"dev": "set DEBUG=gradio-chatbot && next dev --port 7860 --hostname 0.0.0.0",
|
7 |
"build": "next build",
|
8 |
+
"start": "next start --port 7860",
|
9 |
"lint": "next lint"
|
10 |
},
|
11 |
"dependencies": {
|