Fix Dockerfile.cache glibc version
All checks were successful
Build and Publish Docker Container / build (push) Successful in 14m11s

This commit is contained in:
Joshua Coles 2024-06-03 20:14:41 +01:00
parent f344d69419
commit b37273cfbe
2 changed files with 4 additions and 4 deletions

View File

@ -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"]

View File

@ -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?;
}