Skip to content

Commit a5000cc

Browse files
committed
Rename, dockerfile
1 parent 1faff7c commit a5000cc

File tree

13 files changed

+29
-0
lines changed

13 files changed

+29
-0
lines changed

pyth-lazer-agent/.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
target
2+
Dockerfile

pyth-lazer-agent/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Generated by Cargo
2+
# will have compiled files and executables
3+
/target/
4+
5+
# Mac OS
6+
.DS_Store
File renamed without changes.
File renamed without changes.

pyth-lazer-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 build-essential && apt clean all
4+
5+
ADD . /pyth-lazer-agent
6+
WORKDIR /pyth-lazer-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 /pyth-lazer-agent/target/release/pyth-lazer-agent /pyth-lazer-agent/
15+
COPY --from=builder /pyth-lazer-agent/config/* /pyth-lazer-agent/config/
16+
17+
ENTRYPOINT ["/pyth-lazer-agent/pyth-lazer-agent"]
File renamed without changes.

pyth-lazer-agent/rust-toolchain.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[toolchain]
2+
channel = "1.87.0"
3+
profile = "minimal"
4+
components = ["rustfmt", "clippy"]
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)