Skip to content

Commit

Permalink
fix: #458 Workers docker issues (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkleszcz committed Feb 28, 2024
1 parent d50c53b commit 652bd40
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
@@ -0,0 +1,4 @@
node_modules
**/node_modules
.nx
.saas-boilerplate
4 changes: 3 additions & 1 deletion packages/backend/.dockerignore
@@ -1 +1,3 @@
__pypackages__
__pypackages__
node_modules
**/node_modules
1 change: 1 addition & 0 deletions packages/internal/cli/src/commands/up.ts
Expand Up @@ -102,6 +102,7 @@ export default class Up extends BaseCommand<typeof Up> {
await assertDockerIsRunning();
await dockerHubLogin();

await runCommand('pnpm', ['saas', 'emails', 'build']);
await runCommand('pnpm', ['nx', 'run', 'core:docker-compose:up']);
const backendEndpoint = await getBackendEndpoint(this);
await waitForBackend(this, { url: backendEndpoint, retryCount: 200 });
Expand Down
1 change: 1 addition & 0 deletions packages/workers/.dockerignore
@@ -1,4 +1,5 @@
node_modules
**/node_modules
.serverless
.pytest_cache
__pypackages__
Expand Down
2 changes: 1 addition & 1 deletion packages/workers/Dockerfile
Expand Up @@ -52,4 +52,4 @@ ENV PYTHONPATH=/pkgs/__pypackages__/3.11/lib \

WORKDIR $DEST_WORKERS_PATH

CMD pnpm nx serve workers
CMD node ./scripts/runtime/local-trigger-server.js

0 comments on commit 652bd40

Please sign in to comment.