Skip to content

Commit 140e1a0

Browse files
committed
refactor: Update Dockerfile to use Node.js current-slim and improve Mintlify commands
1 parent 81a7594 commit 140e1a0

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Dockerfile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
# Use Node.js 20 as base image
2-
FROM node:20-alpine
1+
FROM node:current-slim
32

4-
# Set working directory
5-
WORKDIR /app
3+
# Install the Mintlify CLI globally
4+
RUN npm install -g mint
65

7-
# Install Mintlify CLI globally
8-
RUN npm install -g mintlify
6+
# Set the working directory inside the container
7+
WORKDIR /app
98

10-
# Copy all documentation files
11-
COPY . .
9+
# Copy your documentation files into the container
10+
# Make sure to run this from the root of your docs project
11+
ADD . .
1212

13-
# Expose port 3000 (default Mintlify port)
13+
# Expose the port Mintlify uses for the dev server (if needed)
1414
EXPOSE 3000
1515

16-
# Start the Mintlify server
17-
CMD ["mintlify", "dev", "--host", "0.0.0.0"]
16+
# Default command to run the dev server (can be overridden)
17+
CMD ["mint", "dev"]

0 commit comments

Comments
 (0)