diff --git a/Dockerfile.cache b/Dockerfile.cache index 9e046ab..41422d3 100644 --- a/Dockerfile.cache +++ b/Dockerfile.cache @@ -24,7 +24,7 @@ COPY . . RUN cargo build --release -p monzo-ingestion # Stage 2: Run -FROM debian:bullseye-slim AS final +FROM debian:bookworm-slim AS runtime RUN set -ex; \ apt-get update && \ @@ -55,4 +55,4 @@ HEALTHCHECK --interval=5s --timeout=3s --retries=3 \ CMD curl -f http://localhost:3000/health || exit 1 # What the container should run when it is started. -CMD ["/bin/server", "web", "--addr", "0.0.0.0:3000"] +CMD ["/bin/server", "serve", "--addr", "0.0.0.0:3000"] diff --git a/src/main.rs b/src/main.rs index 847be21..724f65f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -28,7 +28,7 @@ enum Commands { down: bool, }, - Run { + Serve { /// If we should perform migration on startup. #[clap(short, long, env, default_value_t = true)] migrate: bool, @@ -82,7 +82,7 @@ async fn main() -> anyhow::Result<()> { } } - Commands::Run { migrate, addr } => { + Commands::Serve { migrate, addr } => { if migrate { Migrator::up(&connection, None).await?; }