diff --git a/backend/Dockerfile b/backend/Dockerfile index d2c647c..8880d3b 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -26,11 +26,9 @@ RUN git clone https://git.sr.ht/~sircmpwn/hare && \ make && \ make install -FROM rust:1.78 as rustbuild - WORKDIR /src COPY ./ ./ -RUN cargo build --release +RUN make httpd FROM ubuntu:24.04 @@ -43,6 +41,6 @@ RUN apt-get update -qq \ vim COPY --from=harebuild /usr/local /usr/local -COPY --from=rustbuild /src/target/release/backend /usr/local/bin/backend +COPY --from=harebuild /src/httpd /usr/local/bin/backend -ENTRYPOINT ["/usr/local/bin/backend"] +ENTRYPOINT ["/usr/local/bin/backend", "-a", "0.0.0.0:8080"]