FROM ghcr.io/alchemy-studio-robot/htybasic COPY htycommons ./htycommons COPY htyws ./htyws RUN cd htyws; cargo build --release FROM debian:buster # copy boot program generated from above container COPY --from=0 /htyws/target/release/htyws /root/htyws # copy scripts file COPY htyws/container/*.sh /root/ COPY htyws/config/log4rs.yaml /root/config/ ARG OPERATOR ARG OPERATOR_PWD ARG FORM_API_KEY ENV OPERATOR=$OPERATOR ENV OPERATOR_PWD=$OPERATOR_PWD ENV FORM_API_KEY=$FORM_API_KEY RUN apt-get update -y RUN apt-get install -y libpq-dev RUN /root/setup.sh ENTRYPOINT /root/init.sh