Compare commits

...

3 Commits

Author SHA1 Message Date
b37273cfbe Fix Dockerfile.cache glibc version
All checks were successful
Build and Publish Docker Container / build (push) Successful in 14m11s
2024-06-03 20:14:41 +01:00
f344d69419 Fix Dockerfile.cache 2024-06-03 20:09:46 +01:00
901aba9c7f Fix Dockerfile.cache 2024-06-03 20:09:26 +01:00
2 changed files with 5 additions and 5 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 && \
@ -46,7 +46,7 @@ RUN adduser \
USER appuser
# Copy the executable from the "build" stage.
COPY --from=builder /build/target/release/monzo-ingestion /bin/
COPY --from=builder /build/target/release/monzo-ingestion /bin/server
# Expose the port that the application listens on.
EXPOSE 3000
@ -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"]
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?;
}