Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions motia/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
node_modules
.env
.env.example
.git
.gitignore
.DS_Store
*.md
Dockerfile
.dockerignore
eslint.config.js
postman_collection_for_api_testing.json
README.md
.babelrc
tests
jest.config.js
tests/setup.js
*.test.js
*.spec.js
pnpm-lock.yaml
pnpm-store
4 changes: 2 additions & 2 deletions motia/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN npm install -g pnpm
COPY package.json pnpm-lock.yaml* ./

# Install dependencies (production only)
RUN pnpm install --prod
RUN pnpm install --prod && pnpm store prune

# Copy application code
COPY . .
Expand All @@ -25,4 +25,4 @@ HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 \
CMD node -e "require('http').get('http://localhost:3001/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"

# Start the Motia service
CMD ["pnpm", "start"]
CMD ["pnpm", "start"]