Skip to content

Commit 94382f6

Browse files
authored
Add minimal docker image to tun pyth-agent (#81)
* Add minimal docker image to tun pyth-agent * Add new line at the end of agent.Dockerfile
1 parent 86482a3 commit 94382f6

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

agent.Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM rust:slim-bookworm as builder
2+
3+
RUN apt update && apt install -y curl libssl-dev pkg-config && apt clean all
4+
5+
ADD . /agent
6+
WORKDIR /agent
7+
8+
RUN cargo build --release
9+
10+
FROM debian:12-slim
11+
12+
RUN apt update && apt install -y libssl-dev && apt clean all
13+
14+
COPY --from=builder /agent/target/release/agent /agent/
15+
COPY --from=builder /agent/config/* /agent/config/
16+
17+
ENTRYPOINT ["/agent/agent"]

0 commit comments

Comments
 (0)