Skip to content

Commit

Permalink
feat: docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
vika135 committed Jan 31, 2025
1 parent b017026 commit 7d761b5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 20 deletions.
31 changes: 31 additions & 0 deletions Dockerfile
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"]
20 changes: 0 additions & 20 deletions apps/builder/Dockerfile

This file was deleted.

0 comments on commit 7d761b5

Please sign in to comment.