Spaces:
Sleeping
Sleeping
Yann
commited on
Commit
·
05f21ba
1
Parent(s):
15a5384
modified docker file
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
|
@@ -13,8 +13,10 @@ RUN npm install
|
|
| 13 |
# Copy the rest of the application code into the container
|
| 14 |
COPY . .
|
| 15 |
|
|
|
|
|
|
|
| 16 |
# Expose the port that the application will use
|
| 17 |
EXPOSE 3000
|
| 18 |
|
| 19 |
# Run the command to start the application
|
| 20 |
-
CMD ["npm", "
|
|
|
|
| 13 |
# Copy the rest of the application code into the container
|
| 14 |
COPY . .
|
| 15 |
|
| 16 |
+
RUN npm run build
|
| 17 |
+
|
| 18 |
# Expose the port that the application will use
|
| 19 |
EXPOSE 3000
|
| 20 |
|
| 21 |
# Run the command to start the application
|
| 22 |
+
CMD ["npm", "serve"]
|