Skip to content

Commit

Permalink
upd: we need all packages in Dockerfile workdir
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyKhd committed Jan 15, 2025
1 parent f9af3bc commit 021012c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 9 deletions.
20 changes: 20 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Ignore node_modules from the build context
node_modules

# Ignore logs and temporary files
*.log
*.tmp
.DS_Store

# Ignore Git files and metadata
.git
.gitignore

# Ignore IDE and editor config files
.vscode
.idea
*.swp

# Ignore build artifacts from the host
dist
build
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,12 @@ RUN ln -sf /usr/bin/python3 /usr/bin/python
# Set the working directory
WORKDIR /app

# Copy only the essential files for dependency installation
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc turbo.json ./
# Copy application code
COPY . .

# Install dependencies
RUN pnpm install --no-frozen-lockfile

# Copy the rest of the application code
COPY . .

# Build the project
RUN pnpm run build && pnpm prune --prod

Expand Down
8 changes: 4 additions & 4 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
services:
tee:
eliza:
build:
context: .
dockerfile: Dockerfile
stdin_open: true
tty: true
volumes:
- /var/run/tappd.sock:/var/run/tappd.sock
- tee:/app/packages/client-twitter/src/tweetcache
- tee:/app/db.sqlite
- eliza:/app/packages/client-twitter/src/tweetcache
- eliza:/app/db.sqlite
environment:
- OPENAI_API_KEY=
- REDPILL_API_KEY=
Expand Down Expand Up @@ -39,4 +39,4 @@ services:
restart: always

volumes:
tee:
eliza:

0 comments on commit 021012c

Please sign in to comment.