Commit ·
cedcbcd
1
Parent(s): c2e4c8e
Update dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
|
@@ -13,14 +13,14 @@ RUN npm ci
|
|
| 13 |
# Copy the rest of the application
|
| 14 |
COPY . .
|
| 15 |
|
| 16 |
-
# Build the
|
| 17 |
RUN npx next build
|
| 18 |
|
| 19 |
# Remove dev dependencies to reduce image size
|
| 20 |
RUN npm prune --production
|
| 21 |
|
| 22 |
-
# Expose
|
| 23 |
-
EXPOSE
|
| 24 |
|
| 25 |
-
# Start
|
| 26 |
-
CMD ["
|
|
|
|
| 13 |
# Copy the rest of the application
|
| 14 |
COPY . .
|
| 15 |
|
| 16 |
+
# Build the Next.js application
|
| 17 |
RUN npx next build
|
| 18 |
|
| 19 |
# Remove dev dependencies to reduce image size
|
| 20 |
RUN npm prune --production
|
| 21 |
|
| 22 |
+
# Expose Hugging Face default port
|
| 23 |
+
EXPOSE 7860
|
| 24 |
|
| 25 |
+
# Start Next.js on port 7860
|
| 26 |
+
CMD ["npx", "next", "start", "-p", "7860"]
|