-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.app
More file actions
42 lines (31 loc) · 925 Bytes
/
Dockerfile.app
File metadata and controls
42 lines (31 loc) · 925 Bytes
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
FROM node:22-bookworm-slim AS builder
WORKDIR /app
# Needed by scripts/prod-direct.sh health checks.
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates curl \
&& rm -rf /var/lib/apt/lists/*
COPY package.json yarn.lock .yarnrc.yml ./
COPY .yarn ./.yarn
COPY tsconfig.json ./
COPY scripts ./scripts
COPY packages ./packages
RUN corepack enable
RUN yarn install --immutable
RUN yarn build
FROM node:22-bookworm-slim AS runtime
WORKDIR /app
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates curl tini \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /app /app
ENV NODE_ENV=production
ENV INK_PORT_BASE=3001
ENV WEB_PORT=3002
ENV MYRA_HTTP_PORT=3003
ENV API_URL=http://localhost:3001
ENV ENABLE_TELEGRAM=false
ENV ENABLE_WHATSAPP=false
ENV ENABLE_DISCORD=false
EXPOSE 3001 3002 3003
ENTRYPOINT ["tini", "--"]
CMD ["./scripts/prod-direct.sh"]