diff --git a/motia/.dockerignore b/motia/.dockerignore new file mode 100644 index 0000000..852b89a --- /dev/null +++ b/motia/.dockerignore @@ -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 diff --git a/motia/Dockerfile b/motia/Dockerfile index c20debe..0827323 100644 --- a/motia/Dockerfile +++ b/motia/Dockerfile @@ -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 . . @@ -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"] \ No newline at end of file +CMD ["pnpm", "start"]