| 1234567891011121314151617181920212223242526272829 | # This Dockerfile is composed of two steps: the first one builds the release# binary, and then the binary is copied inside another, empty image.##################  Build image  ##################FROM rust:1.53 AS buildCOPY . .RUN cargo test --release --allRUN cargo build --release###################  Output image  ###################FROM ubuntu:bionic AS binaryRUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \    ca-certificatesRUN mkdir -p /opt/triagebotCOPY --from=build /target/release/triagebot /usr/local/bin/COPY templates /opt/triagebot/templatesWORKDIR /opt/triagebotENV PORT=80CMD triagebot
 |