Skip to content

Commit b37d879

Browse files
committed
feat:rename archiver docker file and change default log level
Signed-off-by: Chen Kai <[email protected]>
1 parent 8963c73 commit b37d879

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

Dockerfile

Whitespace-only changes.

archiver.Dockerfile

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Use the official Rust image as the base
2+
FROM rust:latest as builder
3+
4+
# Set the working directory
5+
WORKDIR /usr/src/blob-archiver-rs
6+
7+
# Copy the entire project
8+
COPY . .
9+
10+
# Build the project
11+
RUN cargo build --release
12+
13+
# Create a new stage with a minimal image
14+
FROM debian:buster-slim
15+
16+
# Install OpenSSL
17+
RUN apt-get update && apt-get install -y openssl ca-certificates && rm -rf /var/lib/apt/lists/*
18+
19+
# Copy the built binary from the builder stage
20+
COPY --from=builder /usr/src/blob-archiver-rs/target/release/archiver /usr/local/bin/archiver
21+
22+
# Set the entrypoint
23+
ENTRYPOINT ["archiver"]

bin/archiver/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ pub fn setup_tracing(
158158

159159
#[derive(Parser, Serialize)]
160160
pub struct CliArgs {
161-
#[clap(short = 'v', long, action = clap::ArgAction::Count, default_value = "3")]
161+
#[clap(short = 'v', long, action = clap::ArgAction::Count, default_value = "2")]
162162
verbose: u8,
163163

164164
#[clap(long)]

0 commit comments

Comments
 (0)