Skip to content

Commit 9878d6f

Browse files
committed
upd: we need all packages in Dockerfile workdir
1 parent b7fc2d4 commit 9878d6f

File tree

3 files changed

+26
-9
lines changed

3 files changed

+26
-9
lines changed

.dockerignore

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Ignore node_modules from the build context
2+
node_modules
3+
4+
# Ignore logs and temporary files
5+
*.log
6+
*.tmp
7+
.DS_Store
8+
9+
# Ignore Git files and metadata
10+
.git
11+
.gitignore
12+
13+
# Ignore IDE and editor config files
14+
.vscode
15+
.idea
16+
*.swp
17+
18+
# Ignore build artifacts from the host
19+
dist
20+
build

Dockerfile

+2-5
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,12 @@ RUN ln -sf /usr/bin/python3 /usr/bin/python
3434
# Set the working directory
3535
WORKDIR /app
3636

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

4040
# Install dependencies
4141
RUN pnpm install --no-frozen-lockfile
4242

43-
# Copy the rest of the application code
44-
COPY . .
45-
4643
# Build the project
4744
RUN pnpm run build && pnpm prune --prod
4845

docker-compose.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
services:
2-
tee:
2+
eliza:
33
build:
44
context: .
55
dockerfile: Dockerfile
66
stdin_open: true
77
tty: true
88
volumes:
99
- /var/run/tappd.sock:/var/run/tappd.sock
10-
- tee:/app/packages/client-twitter/src/tweetcache
11-
- tee:/app/db.sqlite
10+
- eliza:/app/packages/client-twitter/src/tweetcache
11+
- eliza:/app/db.sqlite
1212
environment:
1313
- OPENAI_API_KEY=
1414
- REDPILL_API_KEY=
@@ -39,4 +39,4 @@ services:
3939
restart: always
4040

4141
volumes:
42-
tee:
42+
eliza:

0 commit comments

Comments
 (0)