2024-10-18 19:39:58 +01:00
|
|
|
# FIXME: Use mariner once they support the latest Rust.
|
|
|
|
# FROM mcr.microsoft.com/cbl-mariner/base/rust:1 as builder
|
|
|
|
FROM rust:1-bullseye AS builder
|
|
|
|
|
|
|
|
COPY Cargo.lock /build/
|
|
|
|
COPY Cargo.toml /build/
|
|
|
|
COPY src /build/src
|
|
|
|
|
|
|
|
# Build the default page
|
|
|
|
WORKDIR /build
|
|
|
|
|
|
|
|
RUN cargo build --release
|
|
|
|
RUN mkdir -p /app && mv target/release/nederlandskie /app/
|
|
|
|
|
|
|
|
# FROM mcr.microsoft.com/cbl-mariner/distroless/base:2.0
|
|
|
|
FROM debian:bullseye-slim
|
|
|
|
|
2024-10-18 20:24:45 +01:00
|
|
|
RUN apt-get update && apt-get install -y ca-certificates
|
|
|
|
RUN update-ca-certificates
|
|
|
|
|
2024-10-18 19:39:58 +01:00
|
|
|
COPY --from=builder /app /app
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
EXPOSE 8000
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/app/nederlandskie" ]
|