Skip to content

Commit 5d37476

Browse files
committed
chore: fix docker deploy for docs website
1 parent 79a3df2 commit 5d37476

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

packages/docs/Dockerfile

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,14 @@
1-
FROM node:20-alpine
1+
FROM node:23-alpine
22

33
WORKDIR /app
4-
5-
# Install pnpm
64
RUN npm install -g pnpm
7-
8-
# Copy package.json and lock files
9-
COPY package.json pnpm-lock.yaml ./
10-
11-
# Install dependencies
12-
RUN pnpm install --frozen-lockfile
13-
14-
# Copy the rest of the application
155
COPY . .
6+
RUN pnpm install --frozen-lockfile
167

17-
# Build the Docusaurus site
188
ENV NODE_ENV=production
19-
RUN pnpm build
9+
RUN pnpm --filter mycoder-docs build
2010

21-
# Expose the port the app will run on
2211
ENV PORT=8080
2312
EXPOSE ${PORT}
2413

25-
# Command to run the application
26-
CMD ["pnpm", "serve", "--port", "8080", "--no-open"]
14+
CMD ["pnpm", "--filter", "mycoder-docs", "start"]

0 commit comments

Comments
 (0)