-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (24 loc) · 714 Bytes
/
Dockerfile
File metadata and controls
32 lines (24 loc) · 714 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
FROM rust:1.86-bookworm AS build
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
nodejs \
npm \
pkg-config \
libsqlite3-dev \
&& rm -rf /var/lib/apt/lists/*
RUN npm install -g pnpm@10
WORKDIR /repo
COPY . .
RUN pnpm install --frozen-lockfile
RUN pnpm exec nx build webhook_router --configuration=production
FROM debian:bookworm-slim AS runtime
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
libsqlite3-0 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY --from=build /repo/dist/target/webhook_router/release/webhook_router /app/webhook_router
EXPOSE 3000
ENTRYPOINT ["/app/webhook_router"]