karton/Dockerfile
Arghyadip Chakraborty 08871e15b6 Automated docker build
2022-08-25 22:25:03 +05:30

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"]