Fix Dockerfile.cache glibc version
All checks were successful
Build and Publish Docker Container / build (push) Successful in 14m11s
All checks were successful
Build and Publish Docker Container / build (push) Successful in 14m11s
This commit is contained in:
parent
f344d69419
commit
b37273cfbe
@ -24,7 +24,7 @@ COPY . .
|
|||||||
RUN cargo build --release -p monzo-ingestion
|
RUN cargo build --release -p monzo-ingestion
|
||||||
|
|
||||||
# Stage 2: Run
|
# Stage 2: Run
|
||||||
FROM debian:bullseye-slim AS final
|
FROM debian:bookworm-slim AS runtime
|
||||||
|
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
@ -55,4 +55,4 @@ HEALTHCHECK --interval=5s --timeout=3s --retries=3 \
|
|||||||
CMD curl -f http://localhost:3000/health || exit 1
|
CMD curl -f http://localhost:3000/health || exit 1
|
||||||
|
|
||||||
# What the container should run when it is started.
|
# 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"]
|
||||||
|
|||||||
@ -28,7 +28,7 @@ enum Commands {
|
|||||||
down: bool,
|
down: bool,
|
||||||
},
|
},
|
||||||
|
|
||||||
Run {
|
Serve {
|
||||||
/// If we should perform migration on startup.
|
/// If we should perform migration on startup.
|
||||||
#[clap(short, long, env, default_value_t = true)]
|
#[clap(short, long, env, default_value_t = true)]
|
||||||
migrate: bool,
|
migrate: bool,
|
||||||
@ -82,7 +82,7 @@ async fn main() -> anyhow::Result<()> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Commands::Run { migrate, addr } => {
|
Commands::Serve { migrate, addr } => {
|
||||||
if migrate {
|
if migrate {
|
||||||
Migrator::up(&connection, None).await?;
|
Migrator::up(&connection, None).await?;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user