27 lines
No EOL
486 B
Docker
27 lines
No EOL
486 B
Docker
FROM rust:latest as build
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN \
|
|
DEBIAN_FRONTEND=noninteractive \
|
|
apt-get update &&\
|
|
apt-get -y install ca-certificates tzdata &&\
|
|
cargo build --release
|
|
|
|
FROM debian:bullseye-slim
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=build \
|
|
/usr/share/zoneinfo \
|
|
/usr/share/zoneinfo
|
|
COPY --from=build \
|
|
/etc/ssl/certs/ca-certificates.crt \
|
|
/etc/ssl/certs/ca-certificates.crt
|
|
COPY --from=build \
|
|
/app/target/release/microbin \
|
|
/usr/bin/microbin
|
|
|
|
ENTRYPOINT ["microbin"] |