1
Fork 0

docker: build hare backend

This commit is contained in:
Jan-Erik Rediger 2024-06-01 15:41:13 +02:00
parent e87a34e3fa
commit f47393043f

View file

@ -26,11 +26,9 @@ RUN git clone https://git.sr.ht/~sircmpwn/hare && \
make && \ make && \
make install make install
FROM rust:1.78 as rustbuild
WORKDIR /src WORKDIR /src
COPY ./ ./ COPY ./ ./
RUN cargo build --release RUN make httpd
FROM ubuntu:24.04 FROM ubuntu:24.04
@ -43,6 +41,6 @@ RUN apt-get update -qq \
vim vim
COPY --from=harebuild /usr/local /usr/local 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"]