| 1234567891011121314151617181920212223 | # Build imageFROM golang:1.21 AS buildWORKDIR /build# Configure known hostsRUN mkdir -p /root/.ssh && ssh-keyscan github.com >> /root/.ssh/known_hosts# Copy sourceCOPY go.mod go.sum main.go ./COPY internal ./internal# Install dependencies and buildRUN go installRUN go build -o shorty# Distribution imageFROM debian:12# Copy binary and set as commandCOPY --from=build /build/shorty /usr/local/bin/shortyENTRYPOINT ["shorty"]CMD ["start"]
 |