-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Docker support for Srcbook (#455)
- Loading branch information
1 parent
a236470
commit 0a7859b
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM node:22.7.0-alpine3.20 | ||
WORKDIR /app | ||
|
||
RUN corepack enable && corepack prepare [email protected] --activate | ||
|
||
# Copy all package files first | ||
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./ | ||
COPY packages packages/ | ||
COPY srcbook srcbook/ | ||
COPY turbo.json ./ | ||
|
||
# Install dependencies | ||
RUN pnpm install | ||
|
||
# Build the application | ||
RUN pnpm build | ||
|
||
# Create necessary directories for volumes | ||
RUN mkdir -p /root/.srcbook /root/.npm | ||
|
||
# Source code will be mounted at runtime | ||
CMD [ "pnpm", "start" ] | ||
|
||
EXPOSE 2150 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters