Bläddra i källkod

Rename, dockerfile

Mike Rolish 5 månader sedan
förälder
incheckning
a5000ccbd8

+ 2 - 0
pyth-lazer-agent/.dockerignore

@@ -0,0 +1,2 @@
+target
+Dockerfile

+ 6 - 0
pyth-lazer-agent/.gitignore

@@ -0,0 +1,6 @@
+# Generated by Cargo
+# will have compiled files and executables
+/target/
+
+# Mac OS
+.DS_Store

+ 0 - 0
lazer_agent/Cargo.lock → pyth-lazer-agent/Cargo.lock


+ 0 - 0
lazer_agent/Cargo.toml → pyth-lazer-agent/Cargo.toml


+ 17 - 0
pyth-lazer-agent/Dockerfile

@@ -0,0 +1,17 @@
+FROM rust:slim-bookworm AS builder
+
+RUN apt update && apt install -y curl libssl-dev pkg-config build-essential && apt clean all
+
+ADD . /pyth-lazer-agent
+WORKDIR /pyth-lazer-agent
+
+RUN cargo build --release
+
+FROM debian:12-slim
+
+RUN apt update && apt install -y libssl-dev && apt clean all
+
+COPY --from=builder /pyth-lazer-agent/target/release/pyth-lazer-agent /pyth-lazer-agent/
+COPY --from=builder /pyth-lazer-agent/config/* /pyth-lazer-agent/config/
+
+ENTRYPOINT ["/pyth-lazer-agent/pyth-lazer-agent"]

+ 0 - 0
lazer_agent/config.toml → pyth-lazer-agent/config/config.toml


+ 4 - 0
pyth-lazer-agent/rust-toolchain.toml

@@ -0,0 +1,4 @@
+[toolchain]
+channel = "1.87.0"
+profile = "minimal"
+components = ["rustfmt", "clippy"]

+ 0 - 0
lazer_agent/src/config.rs → pyth-lazer-agent/src/config.rs


+ 0 - 0
lazer_agent/src/http_server.rs → pyth-lazer-agent/src/http_server.rs


+ 0 - 0
lazer_agent/src/lazer_publisher.rs → pyth-lazer-agent/src/lazer_publisher.rs


+ 0 - 0
lazer_agent/src/main.rs → pyth-lazer-agent/src/main.rs


+ 0 - 0
lazer_agent/src/publisher_handle.rs → pyth-lazer-agent/src/publisher_handle.rs


+ 0 - 0
lazer_agent/src/websocket_utils.rs → pyth-lazer-agent/src/websocket_utils.rs