formulate 0.10.0

formulate is a standalone server that listens for web form data submissions.
FROM rust:1.68-alpine3.16 as builder
WORKDIR /usr/src/formulate

ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
COPY . .
RUN apk add libc-dev pkgconfig openssl-dev
RUN cargo build --release

FROM alpine:3.16
LABEL dev.orbitsolutions.code="ORB IT Solutions LLC"
LABEL org.opencontainers.image.authors="maint@orbitsolutions.dev"
LABEL version="1.0"

COPY --from=builder /usr/src/formulate/target/release/formulate /usr/local/bin/formulate

ENV FORM_SUBMISSION_destination_email=""
ENV FORM_SUBMISSION_sending_email=""

EXPOSE 25 8000
CMD ["formulate"]