forked from webstudio-is/webstudio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
31 additions
and
20 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,31 @@ | ||
FROM node:22.13.1-alpine AS builder | ||
|
||
# Set working directory | ||
WORKDIR /app | ||
|
||
# Copy application files | ||
COPY packages/ ./packages | ||
COPY pnpm-workspace.yaml ./ | ||
COPY apps/builder/ ./ | ||
|
||
# Install dependencies | ||
RUN corepack enable && corepack prepare pnpm@latest --activate | ||
RUN pnpm install | ||
|
||
# Build the application (if needed, adjust accordingly) | ||
RUN pnpm run build | ||
|
||
# -- Second Stage: Production Image -- | ||
FROM node:22.13.1-alpine AS production | ||
|
||
# Set working directory | ||
WORKDIR /app | ||
|
||
# Copy only necessary files from builder stage | ||
COPY --from=builder /app . | ||
|
||
# Expose necessary port | ||
EXPOSE 13100 | ||
|
||
# Set entry point | ||
CMD ["npx", "remix-serve", "build/server/index.js"] |
This file was deleted.
Oops, something went wrong.