Init project

This commit is contained in:
2025-06-04 12:20:49 +03:00
commit 232684509f
13 changed files with 2891 additions and 0 deletions

26
Dockerfile Normal file
View File

@@ -0,0 +1,26 @@
FROM rust:1.87.0-slim-bullseye AS builder
WORKDIR /app
RUN apt-get update && \
apt-get install -y \
pkg-config \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*
COPY Cargo.toml Cargo.lock ./
COPY ./src ./src
RUN cargo build --release
FROM debian:bullseye-slim
WORKDIR /app
RUN apt-get update && \
apt-get install -y \
libpq5 \
openssl \
ca-certificates \
&& update-ca-certificates --fresh \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /app/target/release/cryptohunter /app/cryptohunter
ENTRYPOINT ["/app/cryptohunter"]