karton/Dockerfile

27 lines
486 B
Docker
Raw Normal View History

2022-08-25 16:55:03 +00:00
FROM rust:latest as build
2022-08-25 16:55:03 +00:00
WORKDIR /app
COPY . .
2022-08-25 16:55:03 +00:00
RUN \
DEBIAN_FRONTEND=noninteractive \
apt-get update &&\
apt-get -y install ca-certificates tzdata &&\
cargo build --release
2022-08-25 16:55:03 +00:00
FROM debian:bullseye-slim
2022-08-25 16:55:03 +00:00
WORKDIR /app
2022-08-25 16:55:03 +00:00
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
2022-08-25 16:55:03 +00:00
ENTRYPOINT ["microbin"]