forked from elizaOS/eliza
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
60 lines (45 loc) · 1.22 KB
/
Dockerfile
File metadata and controls
60 lines (45 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
FROM node:23.3.0-slim AS builder
WORKDIR /app
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
curl \
ffmpeg \
g++ \
git \
make \
python3 \
unzip && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN npm install -g bun@1.2.5 turbo@2.3.3
RUN ln -s /usr/bin/python3 /usr/bin/python
COPY package.json turbo.json tsconfig.json lerna.json renovate.json .npmrc ./
COPY scripts ./scripts
COPY packages ./packages
RUN bun install --no-cache
RUN bun run build
FROM node:23.3.0-slim
WORKDIR /app
RUN apt-get update && \
apt-get install -y --no-install-recommends \
curl \
ffmpeg \
git \
python3 \
unzip && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN npm install -g bun@1.2.5 turbo@2.3.3
COPY --from=builder /app/package.json ./
COPY --from=builder /app/turbo.json ./
COPY --from=builder /app/tsconfig.json ./
COPY --from=builder /app/lerna.json ./
COPY --from=builder /app/renovate.json ./
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/packages ./packages
COPY --from=builder /app/scripts ./scripts
ENV NODE_ENV=production
EXPOSE 3000
EXPOSE 50000-50100/udp
CMD ["bun", "run", "start"]