nederlandskie/dkr/app.dockerfile

24 lines
522 B
Plaintext
Raw Normal View History

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
COPY --from=builder /app /app
WORKDIR /app
EXPOSE 8000
ENTRYPOINT [ "/app/nederlandskie" ]