Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -13,8 +13,11 @@ RUN npm install
|
|
| 13 |
# Copy the rest of the application code
|
| 14 |
COPY . .
|
| 15 |
|
|
|
|
|
|
|
|
|
|
| 16 |
# Expose the port your React app runs on
|
| 17 |
EXPOSE 7860
|
| 18 |
|
| 19 |
# Command to run the application
|
| 20 |
-
CMD ["npm", "run", "
|
|
|
|
| 13 |
# Copy the rest of the application code
|
| 14 |
COPY . .
|
| 15 |
|
| 16 |
+
# Build the app
|
| 17 |
+
RUN npm run build
|
| 18 |
+
|
| 19 |
# Expose the port your React app runs on
|
| 20 |
EXPOSE 7860
|
| 21 |
|
| 22 |
# Command to run the application
|
| 23 |
+
CMD ["npm", "run", "start"]
|