Files
huike-back/htyws/container/local/Dockerfile
T
weli 44c320d8fa chore add core rust project files and diesel migrations
Track required workspace crates, scripts, and historical diesel migrations so the repository contains the complete runnable backend baseline.

Made-with: Cursor
2026-04-23 17:20:01 +08:00

22 lines
580 B
Docker

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