Init project
This commit is contained in:
26
Dockerfile
Normal file
26
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user