From addeecebdb92d3e93382339084e5c1c267f46b80 Mon Sep 17 00:00:00 2001 From: Jan-Erik Rediger Date: Sat, 1 Jun 2024 16:45:25 +0200 Subject: [PATCH] Build it --- backend/.dockerignore | 6 ++++++ backend/Dockerfile | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 backend/.dockerignore diff --git a/backend/.dockerignore b/backend/.dockerignore new file mode 100644 index 0000000..589f263 --- /dev/null +++ b/backend/.dockerignore @@ -0,0 +1,6 @@ +frontend/Makefile +httpd +proctest +threads +backend +*.sh diff --git a/backend/Dockerfile b/backend/Dockerfile index d2c8f60..f6eb1f8 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -28,7 +28,7 @@ RUN git clone https://git.sr.ht/~sircmpwn/hare && \ WORKDIR /src COPY ./ ./ -RUN make httpd HAREPATH=/usr/local/src/hare/stdlib HAREFLAGS=-lpthread +RUN make -B httpd HAREPATH=/usr/local/src/hare/stdlib HAREFLAGS=-lpthread FROM ubuntu:24.04 @@ -42,5 +42,7 @@ RUN apt-get update -qq \ COPY --from=harebuild /usr/local /usr/local COPY --from=harebuild /src/httpd /usr/local/bin/backend +COPY ./frontend/ /app/ +WORKDIR /app ENTRYPOINT ["/usr/local/bin/backend", "-a", "0.0.0.0:8080"]