Skip to content

Commit 81a7594

Browse files
committed
refactor: Update Dockerfile to improve Mintlify installation and server startup
1 parent 88bacc1 commit 81a7594

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

Dockerfile

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,14 @@ FROM node:20-alpine
44
# Set working directory
55
WORKDIR /app
66

7-
# Install Mintlify
7+
# Install Mintlify CLI globally
88
RUN npm install -g mintlify
99

10-
# Copy docs
10+
# Copy all documentation files
1111
COPY . .
1212

13-
# Build the Mintlify site
14-
RUN mintlify build
15-
16-
# Expose port
13+
# Expose port 3000 (default Mintlify port)
1714
EXPOSE 3000
1815

19-
# Start production server
20-
CMD ["mintlify", "start", "--host", "0.0.0.0"]
16+
# Start the Mintlify server
17+
CMD ["mintlify", "dev", "--host", "0.0.0.0"]

0 commit comments

Comments
 (0)