Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -7,7 +7,7 @@ WORKDIR /code
|
|
| 7 |
COPY . .
|
| 8 |
# ==== BUILD =====
|
| 9 |
# Install dependencies (npm ci makes sure the exact versions in the lockfile gets installed)
|
| 10 |
-
RUN npm
|
| 11 |
# Build the app
|
| 12 |
RUN npm run build
|
| 13 |
# ==== RUN =======
|
|
@@ -16,4 +16,4 @@ ENV NODE_ENV production
|
|
| 16 |
# Expose the port on which the app will be running (3000 is the default that `serve` uses)
|
| 17 |
EXPOSE 7860
|
| 18 |
# Start the app
|
| 19 |
-
CMD [ "
|
|
|
|
| 7 |
COPY . .
|
| 8 |
# ==== BUILD =====
|
| 9 |
# Install dependencies (npm ci makes sure the exact versions in the lockfile gets installed)
|
| 10 |
+
RUN npm install
|
| 11 |
# Build the app
|
| 12 |
RUN npm run build
|
| 13 |
# ==== RUN =======
|
|
|
|
| 16 |
# Expose the port on which the app will be running (3000 is the default that `serve` uses)
|
| 17 |
EXPOSE 7860
|
| 18 |
# Start the app
|
| 19 |
+
CMD [ "npm", "run", "start" ]
|