docker: build hare backend
This commit is contained in:
parent
e87a34e3fa
commit
f47393043f
|
@ -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"]
|
||||||
|
|
Loading…
Reference in a new issue